remove automatic deployment on build (#295)
This commit is contained in:
parent
56202d1d19
commit
c5067ec6c3
|
@ -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) {
|
} catch (e) {
|
||||||
// slackSend color: 'bad', message: REPO + ":" + BRANCH_NAME + ' failed to build. ' + env.BUILD_URL
|
// slackSend color: 'bad', message: REPO + ":" + BRANCH_NAME + ' failed to build. ' + env.BUILD_URL
|
||||||
throw e
|
throw e
|
||||||
|
|
Loading…
Reference in New Issue