From 42f9d803b0dafd10672c96c0c302edf7e8fc13c8 Mon Sep 17 00:00:00 2001 From: Clemens Lauermann Date: Thu, 16 Apr 2020 20:26:24 +0200 Subject: [PATCH] better logical structure to read --- Jenkinsfile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1e8db6a..8262408 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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"