From 7e6b3d1a2f204fed6687d71995b73150d1fa69a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20K=C3=B6hler?= <lukas.koehler@h-da.de> Date: Mon, 27 Aug 2018 21:57:46 +0200 Subject: [PATCH] pipeline testing --- .../Praktikum 2/jenkinsfile.groovy | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/pipelines/PAD2 Repetitorium/Praktikum 2/jenkinsfile.groovy b/pipelines/PAD2 Repetitorium/Praktikum 2/jenkinsfile.groovy index c3bb06a..6f66320 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 ''' ) -- GitLab