Skip to content

Commit

Permalink
Logical error when checking brance before pushing transformed files -…
Browse files Browse the repository at this point in the history
… should env.BRANCH_NAME != 'master'
  • Loading branch information
justaddcoffee committed May 18, 2020
1 parent 805dfb6 commit 627ae4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ 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')]) {
Expand Down

0 comments on commit 627ae4b

Please sign in to comment.