This commit is contained in:
Clemens Lauermann 2020-04-27 18:49:07 +02:00
parent 898ce6ecab
commit 01dd9aa609

10
Jenkinsfile vendored
View File

@ -152,10 +152,12 @@ pipeline {
stage('Create Archive') { stage('Create Archive') {
steps { steps {
dir(env.GIT_PATH) { dir(env.GIT_PATH) {
if (params.ARCHIVE_FORMAT == 'zip') { script {
sh "zip -q ${env.ARCHIVE_FILENAME} diplomarbeit.pdf* spellcheck-results.txt" if (params.ARCHIVE_FORMAT == 'zip') {
} else { sh "zip -q ${env.ARCHIVE_FILENAME} diplomarbeit.pdf* spellcheck-results.txt"
sh "tar -czf ${env.ARCHIVE_FILENAME} diplomarbeit.pdf* spellcheck-results.txt" } else {
sh "tar -czf ${env.ARCHIVE_FILENAME} diplomarbeit.pdf* spellcheck-results.txt"
}
} }
} }
} }