better logical structure to read

This commit is contained in:
Clemens Lauermann 2020-04-16 20:26:24 +02:00
parent 189ab3596e
commit 42f9d803b0

22
Jenkinsfile vendored
View File

@ -30,6 +30,17 @@ pipeline {
checkout scm
}
}
stage('Build only template') {
when {
expression { '.git' == params.REPOSITORY }
}
steps {
sh '''
cp -rv HTLLE-DA-Vorlage/example/* .
make pdf -C HTLLE-DA-Vorlage SOURCEDIR=$(pwd)
'''
}
}
stage('Checkout DA') {
when {
expression { '.git' != params.REPOSITORY }
@ -54,17 +65,6 @@ pipeline {
'''
}
}
stage('Build only template') {
when {
expression { '.git' == params.REPOSITORY }
}
steps {
sh '''
cp -rv HTLLE-DA-Vorlage/example/* .
make pdf -C HTLLE-DA-Vorlage SOURCEDIR=$(pwd)
'''
}
}
stage('Test if diplomarbeit.pdf was build') {
steps {
sh "test -f diplomarbeit.pdf"