From 01d9f9a21c461c2e135b1a5163c73cd10a299c9a Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Tue, 17 Oct 2023 17:12:16 -0700 Subject: [PATCH] another shot at setting the zip file name --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c9a0270..d463c80 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,7 +45,8 @@ pipeline { stage('Build production deliverable') { steps { script { - env.ZIP_FILE="url-shortener_$(date "+%Y-%m-%d_%H-%M-%S").tgz" + ZIP_DATE=$(date "+%Y-%m-%d_%H-%M-%S") + env.ZIP_FILE="url-shortener_$ZIP_DATE" } catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { sh ''' #!/usr/local/bin/bash