better try to set the environment

pull/26/head
Adam Townsend 2023-10-17 17:19:31 -07:00
parent a0a9e84b91
commit 36285b060b
1 changed files with 1 additions and 2 deletions

3
Jenkinsfile vendored
View File

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