Skip to content

Commit

Permalink
Merge pull request #182 from Knowledge-Graph-Hub/add_blazegraph_deplo…
Browse files Browse the repository at this point in the history
…y_stage

Add blazegraph deploy stage in Jenkins
  • Loading branch information
justaddcoffee committed May 26, 2020
2 parents 639b6e4 + 823d819 commit 7a4183f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,23 @@ pipeline {
}
}
}

stage('Deploy blazegraph') {
when { anyOf { branch 'master' } }
steps {

git([branch: 'master',
credentialsId: 'justaddcoffee_github_api_token_username_pw',
url: 'https://github.com/geneontology/operations.git'])
dir('./ansible') {

withCredentials([file(credentialsId: 'ansible-bbop-local-slave', variable: 'DEPLOY_LOCAL_IDENTITY')]) {

echo 'Push master out to public Blazegraph'
retry(3){
sh 'ansible-playbook update-kg-hub-endpoint.yaml --inventory=hosts.local-rdf-endpoint --private-key="$DEPLOY_LOCAL_IDENTITY" -e target_user=bbop --extra-vars="endpoint=internal"'
}
}

}
}

0 comments on commit 7a4183f

Please sign in to comment.