Skip to content

Commit

Permalink
Merge pull request #151 from Knowledge-Graph-Hub/add_blazegraph_journ…
Browse files Browse the repository at this point in the history
…al_step

Added stage to make blazegraph journal
  • Loading branch information
justaddcoffee committed May 16, 2020
2 parents af6e658 + 9c8a7d3 commit 93e75b7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,21 @@ pipeline {
}
}

stage('Make blazegraph journal'){
steps {
dir('./config/blazegraph') {
git(
url: 'https://github.com/balhoff/blazegraph-runner.git',
branch: 'master'
)
sh 'sbt stage'
sh 'pigz -d ../merged-kg.nt.gz'
sh './target/universal/stage/bin/blazegraph-runner load --informat=ntriples --journal=merged-kg.jnl --use-ontology-graph=true ../merged-kg.nt'
sh 'pigz merged-kg.jnl'
}
}
}

stage('Publish') {
steps {
dir('./gitrepo') {
Expand All @@ -128,6 +143,7 @@ pipeline {
withCredentials([file(credentialsId: 's3cmd_kg_hub_push_configuration', variable: 'S3CMD_JSON')]) {
sh 's3cmd -c $S3CMD_JSON --acl-public --mime-type=plain/text --cf-invalidate put merged-kg.nt.gz s3://kg-hub-public-data/kg-covid-19.nt.gz'
sh 's3cmd -c $S3CMD_JSON --acl-public --mime-type=plain/text --cf-invalidate put merged-kg.tar.gz s3://kg-hub-public-data/kg-covid-19.tar.gz'
sh 'cd config; s3cmd -c $S3CMD_JSON --acl-public --mime-type=plain/text --cf-invalidate put merged-kg.jnl.gz s3://kg-hub-public-data/kg-covid-19.jnl.gz'
// Should now appear at:
// https://kg-hub.berkeleybop.io/[artifact name]
}
Expand Down

0 comments on commit 93e75b7

Please sign in to comment.