From d4dcac48fff3169d5e4538f7673062e0b39e50f6 Mon Sep 17 00:00:00 2001 From: Stijn Bannink <27051051+stijnb1234@users.noreply.github.com> Date: Tue, 25 Feb 2020 15:33:36 +0100 Subject: [PATCH 1/5] Update Jenkinsfile --- Jenkinsfile | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 68f96ea..1093c2c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,28 @@ pipeline { - agent any - stages { - stage('Build') { - steps { - echo 'Building V10Lift...' - } + agent any + tools { + maven 'Maven 3.3.9' + jdk 'jdk8' } + stages { + stage ('Initialize') { + steps { + sh ''' + echo "PATH = ${PATH}" + echo "M2_HOME = ${M2_HOME}" + ''' + } + } - } + stage ('Build') { + steps { + sh 'mvn -Dmaven.test.failure.ignore=true install' + } + post { + success { + junit 'target/v10lift2/**/*.xml' + } + } + } + } } From c82c36fd1350cf7b44ad0a6260d5a90148896a1f Mon Sep 17 00:00:00 2001 From: Stijn Bannink <27051051+stijnb1234@users.noreply.github.com> Date: Tue, 25 Feb 2020 15:38:10 +0100 Subject: [PATCH 2/5] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1093c2c..2b3ae60 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline { agent any tools { - maven 'Maven 3.3.9' + maven 'Maven 3.6.3' jdk 'jdk8' } stages { From 1455769f432d5436e6684dfac51963aacbdc3993 Mon Sep 17 00:00:00 2001 From: Stijn Bannink <27051051+stijnb1234@users.noreply.github.com> Date: Tue, 25 Feb 2020 15:40:36 +0100 Subject: [PATCH 3/5] Fixed jenkins building --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 2b3ae60..210d79b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,3 +26,4 @@ pipeline { } } } + From ad0aae217f281743ffb367751de387158259fa92 Mon Sep 17 00:00:00 2001 From: Stijn Bannink <27051051+stijnb1234@users.noreply.github.com> Date: Tue, 25 Feb 2020 15:49:00 +0100 Subject: [PATCH 4/5] Update Jenkinsfile --- Jenkinsfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 210d79b..e33cfc9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,11 +18,6 @@ pipeline { steps { sh 'mvn -Dmaven.test.failure.ignore=true install' } - post { - success { - junit 'target/v10lift2/**/*.xml' - } - } } } } From cc8b3a8366a568821566ae991eddb45af134bbfc Mon Sep 17 00:00:00 2001 From: Stijn Bannink <27051051+stijnb1234@users.noreply.github.com> Date: Tue, 25 Feb 2020 15:54:39 +0100 Subject: [PATCH 5/5] Update Jenkinsfile --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index e33cfc9..bdabf22 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,6 +18,16 @@ pipeline { steps { sh 'mvn -Dmaven.test.failure.ignore=true install' } + post { + always { + echo 'Archiving coverage results...' + jacoco(execPattern: '**/**.exec', classPattern: '**/classes', sourcePattern: '**/src/main/java') + echo 'Archiving test results...' + junit 'target/surefire-reports/*.xml' + echo 'Archiving artifacts...' + archiveArtifacts artifacts: 'target/*.jar', fingerprint: true + } + } } } }