From 01dd9aa60935f7de671cfcfff70dc1219492f5be Mon Sep 17 00:00:00 2001 From: Clemens Lauermann Date: Mon, 27 Apr 2020 18:49:07 +0200 Subject: [PATCH] final fix of 6266a90 --- Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 39f7ae1..3aaf8e5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -152,10 +152,12 @@ pipeline { stage('Create Archive') { steps { dir(env.GIT_PATH) { - if (params.ARCHIVE_FORMAT == 'zip') { - sh "zip -q ${env.ARCHIVE_FILENAME} diplomarbeit.pdf* spellcheck-results.txt" - } else { - sh "tar -czf ${env.ARCHIVE_FILENAME} diplomarbeit.pdf* spellcheck-results.txt" + script { + if (params.ARCHIVE_FORMAT == 'zip') { + sh "zip -q ${env.ARCHIVE_FILENAME} diplomarbeit.pdf* spellcheck-results.txt" + } else { + sh "tar -czf ${env.ARCHIVE_FILENAME} diplomarbeit.pdf* spellcheck-results.txt" + } } } }