diff --git a/Jenkinsfile b/Jenkinsfile index f2fe140..91fd408 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -137,11 +137,13 @@ pipeline { stages { stage('resume') { steps { - sh 'cat ${PREVIOUS_JOB_REPORT}' - content = readFile ${PREVIOUS_JOB_REPORT} - jobs = parseJobs(content) - for (job in jobs) - println job + script { + sh 'cat ${PREVIOUS_JOB_REPORT}' + content = readFile ${PREVIOUS_JOB_REPORT} + jobs = parseJobs(content) + for (job in jobs) + println job + ] } } stage('initialize') {