better try to set the environment
This commit is contained in:
Vendored
+1
-2
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user