From 36285b060bba4fb60f0730e9e6dc638cfcb4a714 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Tue, 17 Oct 2023 17:19:31 -0700 Subject: [PATCH] better try to set the environment --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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