remove automatic deployment on build (#295)

This commit is contained in:
Ivan Borovkov 2018-02-15 21:31:55 +04:00 committed by GitHub
parent 56202d1d19
commit c5067ec6c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

8
Jenkinsfile vendored
View File

@ -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