Repository: maven-surefire
Updated Branches:
  refs/heads/jenkinsfile 15800dc0f -> e7a2e4b3b


Jenkinsfile


Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/e7a2e4b3
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/e7a2e4b3
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/e7a2e4b3

Branch: refs/heads/jenkinsfile
Commit: e7a2e4b3b687e72014fc995a2d501e96d345628f
Parents: 15800dc
Author: Tibor17 <[email protected]>
Authored: Wed Aug 23 11:30:18 2017 +0200
Committer: Tibor17 <[email protected]>
Committed: Wed Aug 23 11:30:18 2017 +0200

----------------------------------------------------------------------
 Jenkinsfile | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/e7a2e4b3/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index fac148d..fc3e8f3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -6,21 +6,27 @@ pipeline {
                 parallel unix: {
                     node("${env.NIX_LABEL}") {
                         checkout scm
-                        withEnv(["JAVA_HOME=${tool('JDK 1.8.0_144')}", 
"PATH+MAVEN=${tool('Maven 3.5.0')}/bin:${env.JAVA_HOME}/bin"]) {
-                            sh "mvn clean install jacoco:report -B -U -e -fae 
-V -P run-its,jenkins -Dsurefire.useFile=false -Dfailsafe.useFile=false 
-Dintegration-test-port=8084   \\\"-Djdk.home=${tool('JDK 9 b181')}\\\""
+                        try {
+                            withEnv(["JAVA_HOME=${tool('JDK 1.8.0_144')}", 
"PATH+MAVEN=${tool('Maven 3.5.0')}/bin:${env.JAVA_HOME}/bin"]) {
+                                sh "mvn clean install jacoco:report -B -U -e 
-fae -V -P run-its,jenkins -Dsurefire.useFile=false -Dfailsafe.useFile=false 
-Dintegration-test-port=8084   \\\"-Djdk.home=${tool('JDK 9 b181')}\\\""
+                            }
+                        } finally {
+                            jacoco changeBuildStatus: false, execPattern: 
'**/*.exec'
+                            junit healthScaleFactor: 0.0, allowEmptyResults: 
true, keepLongStdio: true, testResults: 
'**/surefire-integration-tests/target/failsafe-reports/**/*.xml,**/surefire-integration-tests/target/surefire-reports/**/*.xml,**/maven-*/target/surefire-reports/**/*.xml,**/surefire-*/target/surefire-reports/**/*.xml,**/common-*/target/surefire-reports/**/*.xml'
                         }
-                        jacoco changeBuildStatus: false, execPattern: 
'**/*.exec'
-                        junit healthScaleFactor: 0.0, allowEmptyResults: true, 
keepLongStdio: true, testResults: 
'**/surefire-integration-tests/target/failsafe-reports/**/*.xml,**/surefire-integration-tests/target/surefire-reports/**/*.xml,**/maven-*/target/surefire-reports/**/*.xml,**/surefire-*/target/surefire-reports/**/*.xml,**/common-*/target/surefire-reports/**/*.xml'
                     }
                 },
                 windows: {
                     node("${env.WIN_LABEL}") {
                         checkout scm
-                        withEnv(["JAVA_HOME=${tool('JDK 1.8_121 (Windows 
Only)')}", "PATH+MAVEN=${tool('Maven 3.5.0 
(Windows)')}\\bin;${env.JAVA_HOME}\\bin"]) {
-                            bat "mvn clean install jacoco:report -B -U -e -fae 
-V -P run-its,jenkins -Dsurefire.useFile=false -Dfailsafe.useFile=false 
-Dintegration-test-port=8084"
+                        try {
+                            withEnv(["JAVA_HOME=${tool('JDK 1.8_121 (Windows 
Only)')}", "PATH+MAVEN=${tool('Maven 3.5.0 
(Windows)')}\\bin;${env.JAVA_HOME}\\bin"]) {
+                                bat "mvn clean install jacoco:report -B -U -e 
-fae -V -P run-its,jenkins -Dsurefire.useFile=false -Dfailsafe.useFile=false 
-Dintegration-test-port=8084"
+                            }
+                        } finally {
+                            jacoco changeBuildStatus: false, execPattern: 
'**/*.exec'
+                            junit healthScaleFactor: 0.0, allowEmptyResults: 
true, keepLongStdio: true, testResults: 
'**/surefire-integration-tests/target/failsafe-reports/**/*.xml,**/surefire-integration-tests/target/surefire-reports/**/*.xml,**/maven-*/target/surefire-reports/**/*.xml,**/surefire-*/target/surefire-reports/**/*.xml,**/common-*/target/surefire-reports/**/*.xml'
                         }
-                        jacoco changeBuildStatus: false, execPattern: 
'**/*.exec'
-                        junit healthScaleFactor: 0.0, allowEmptyResults: true, 
keepLongStdio: true, testResults: 
'**/surefire-integration-tests/target/failsafe-reports/**/*.xml,**/surefire-integration-tests/target/surefire-reports/**/*.xml,**/maven-*/target/surefire-reports/**/*.xml,**/surefire-*/target/surefire-reports/**/*.xml,**/common-*/target/surefire-reports/**/*.xml'
                     }
                 }
             }

Reply via email to