echo outside catch error

pull/26/head
Adam Townsend 2023-10-17 17:37:35 -07:00
parent 8a0fef63b2
commit 340614dadc
1 changed files with 5 additions and 3 deletions

8
Jenkinsfile vendored
View File

@ -47,11 +47,13 @@ pipeline {
script { script {
env.ZIP_FILE=sh(script: 'ZIP_FILE="url-shortener_$(date "+%Y-%m-%d_%H-%M-%S").tgz"', returnStdout: true) 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') { catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
sh ''' #!/usr/local/bin/bash sh ''' #!/usr/local/bin/bash
echo $ZIP_FILE
echo ${ZIP_FILE}
echo ${env.ZIP_FILE}
CUR_DIR=$(pwd) CUR_DIR=$(pwd)
mkdir -p /tmp/url-shortener mkdir -p /tmp/url-shortener
cp -R * /tmp/url-shortener cp -R * /tmp/url-shortener