From 627ae4bc7f740dfea8e3454e90f65a6e3961d01b Mon Sep 17 00:00:00 2001 From: Justin Reese Date: Mon, 18 May 2020 13:53:11 -0700 Subject: [PATCH] Logical error when checking brance before pushing transformed files - should env.BRANCH_NAME != 'master' --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')]) {