Skip to content

Commit

Permalink
Merge 627ae4b into 4456b97
Browse files Browse the repository at this point in the history
  • Loading branch information
justaddcoffee committed May 18, 2020
2 parents 4456b97 + 627ae4b commit 3da4a7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ pipeline {
script: '. venv/bin/activate && python3.7 run.py transform', returnStatus: true
)
if (run_py_transform == 0) { // upload transformed to s3 if we're on correct branch
if (env.BRANCH_NAME == 'master') {
if (env.BRANCH_NAME != 'master') {
echo "Will not push if not on correct branch."
} else {
withCredentials([file(credentialsId: 's3cmd_kg_hub_push_configuration', variable: 'S3CMD_JSON')]) {
sh 'rm -fr data/transformed/.gitkeep'
sh 's3cmd -c $S3CMD_JSON --acl-public --mime-type=plain/text --cf-invalidate put -r data/transformed s3://kg-hub-public-data/'
}
}
Expand Down

0 comments on commit 3da4a7c

Please sign in to comment.