only build the production environment when the previous steps all executed successfully
parent
ca4182d798
commit
0e9342fab6
|
|
@ -62,6 +62,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Build production deliverable') {
|
stage('Build production deliverable') {
|
||||||
steps {
|
steps {
|
||||||
|
when { equals expected: 'SUCCESS', actual: buildResult }
|
||||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||||
sh ''' #!/usr/local/bin/bash
|
sh ''' #!/usr/local/bin/bash
|
||||||
ZIP_FILE="url-shortener_${BRANCH_NAME}_$(date "+%Y-%m-%d_%H-%M-%S").tgz"
|
ZIP_FILE="url-shortener_${BRANCH_NAME}_$(date "+%Y-%m-%d_%H-%M-%S").tgz"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue