forked from Hg/htlle-da-vorlage
better logical structure to read
This commit is contained in:
parent
189ab3596e
commit
42f9d803b0
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user