diff --git a/pipelines/PAD2 Repetitorium/Praktikum 2/jenkinsfile.groovy b/pipelines/PAD2 Repetitorium/Praktikum 2/jenkinsfile.groovy index c3bb06ac90cd76e5dd06b35d830ef71e7be8ff62..6f66320e921cbddfda452c363770a15395fcba3d 100644 --- a/pipelines/PAD2 Repetitorium/Praktikum 2/jenkinsfile.groovy +++ b/pipelines/PAD2 Repetitorium/Praktikum 2/jenkinsfile.groovy @@ -21,7 +21,7 @@ node { ) } stage('Build') { - sh( + sh( ''' ls -la ''' @@ -38,7 +38,7 @@ node { ) } stage('Collect warnings') { - sh( + sh( ''' ls -la ''' @@ -57,7 +57,7 @@ node { ) } stage('Run valgrind') { - sh( + sh( ''' ls -la ''' @@ -104,20 +104,28 @@ node { ) } stage('Pull and compile cppunit tests') { - sh( - ''' + sh( + ''' ls -la ''' ) - git( - credentialsId: 'codegit', - url: 'https://code.fbi.h-da.de/SS18-REP-PAD2/UnitTests/Praktikum2.git', - changelog: false, - poll: false, - wipeOutWorkspace: false - ) + def exists = fileExists 'git' + if (!exists) { + new File('git').mkdir() + } + dir('git') { + git( + credentialsId: 'codegit', + url: 'https://code.fbi.h-da.de/SS18-REP-PAD2/UnitTests/Praktikum2.git', + changelog: false, + poll: false, + wipeOutWorkspace: false + ) + } + sh( ''' + cp -r git/* ./ ls -la ''' )