echo outside catch error
This commit is contained in:
Vendored
+5
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user