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') {
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"
}
}
}
}