From c5067ec6c30dcbe052045155f84d98a6bc0b99ea Mon Sep 17 00:00:00 2001 From: Ivan Borovkov <555475+v2nek@users.noreply.github.com> Date: Thu, 15 Feb 2018 21:31:55 +0400 Subject: [PATCH] remove automatic deployment on build (#295) --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 636eaaa..219d449 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,6 +24,14 @@ def dockerreponame = "statusim/openbounty-app" } + stage('Deploy') { + if ( currentBuild.rawBuild.getCauses()[0].toString().contains('UserIdCause') ){ + build job: 'status-openbounty/openbounty-cluster', parameters: [[$class: 'StringParameterValue', name: 'DEPLOY_ENVIRONMENT', value: "dev"], [$class: 'StringParameterValue', name: 'BRANCH', value: env.BRANCH_NAME]] + } else { + echo "No deployment on automatic trigger, go to Jenkins and push build button to deliver it." + } + } + } catch (e) { // slackSend color: 'bad', message: REPO + ":" + BRANCH_NAME + ' failed to build. ' + env.BUILD_URL throw e