diff --git a/Jenkinsfile b/Jenkinsfile index f738623c..6cb320a8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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')]) {