diff --git a/Jenkinsfile b/Jenkinsfile index d56c308..e7c711e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,8 +45,7 @@ pipeline { stage('Build production deliverable') { steps { script { - ZIP_DATE=$(date '+%Y-%m-%d_%H-%M-%S') - env.ZIP_FILE="url-shortener_$ZIP_DATE" + env.ZIP_FILE=sh(script: 'echo "url-shortener_$(date "+%Y-%m-%d_%H-%M-%S").tgz', returnStdout: true) } catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { sh ''' #!/usr/local/bin/bash