better try to set the environment
parent
a0a9e84b91
commit
36285b060b
|
|
@ -45,8 +45,7 @@ pipeline {
|
||||||
stage('Build production deliverable') {
|
stage('Build production deliverable') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
ZIP_DATE=$(date '+%Y-%m-%d_%H-%M-%S')
|
env.ZIP_FILE=sh(script: 'echo "url-shortener_$(date "+%Y-%m-%d_%H-%M-%S").tgz', returnStdout: true)
|
||||||
env.ZIP_FILE="url-shortener_$ZIP_DATE"
|
|
||||||
}
|
}
|
||||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||||
sh ''' #!/usr/local/bin/bash
|
sh ''' #!/usr/local/bin/bash
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue