From 340614dadca5ac64c1fedcb74d246980e18b0a68 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Tue, 17 Oct 2023 17:37:35 -0700 Subject: [PATCH] echo outside catch error --- Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e292910..ddf99ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,11 +47,13 @@ pipeline { script { env.ZIP_FILE=sh(script: 'ZIP_FILE="url-shortener_$(date "+%Y-%m-%d_%H-%M-%S").tgz"', returnStdout: true) } + + sh 'echo $ZIP_FILE' + sh 'echo ${ZIP_FILE}' + sh 'echo ${env.ZIP_FILE}' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { sh ''' #!/usr/local/bin/bash - echo $ZIP_FILE - echo ${ZIP_FILE} - echo ${env.ZIP_FILE} CUR_DIR=$(pwd) mkdir -p /tmp/url-shortener cp -R * /tmp/url-shortener