echo outside catch error
parent
8a0fef63b2
commit
340614dadc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue