Repository: maven-surefire
Updated Branches:
  refs/heads/master 500a72807 -> a5389cdc0


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/a5389cdc
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/a5389cdc
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/a5389cdc

Branch: refs/heads/master
Commit: a5389cdc00082aa850f197b11776e6c84ee7806e
Parents: 500a728
Author: Tibor17 <[email protected]>
Authored: Tue Aug 22 08:42:32 2017 +0200
Committer: Tibor17 <[email protected]>
Committed: Tue Aug 22 08:42:32 2017 +0200

----------------------------------------------------------------------
 Jenkinsfile | 76 ++++++++++++++++++++++++++++----------------------------
 1 file changed, 38 insertions(+), 38 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/a5389cdc/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 218f160..0255a1c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,45 +1,45 @@
 pipeline {
     agent none
     stages {
-        stage('Unix Build') {
-            agent {
-                label env.NIX_LABEL
-            }
-            tools {
-                maven 'Maven 3.5.0'
-                jdk 'JDK 1.8.0_144'
-            }
-            steps {
-                checkout scm
-                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')}\\\""
-                jacoco changeBuildStatus: false, execPattern: '**/*.exec'
-            }
-            post {
-                always {
-                    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'
+        stage('Platforms') {
+            parallel(
+                'Unix Build': {
+                    node("${env.NIX_LABEL}") {
+                        tools {
+                            maven 'Maven 3.5.0'
+                            jdk 'JDK 1.8.0_144'
+                        }
+                        steps {
+                            checkout scm
+                            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')}\\\""
+                            jacoco changeBuildStatus: false, execPattern: 
'**/*.exec'
+                        }
+                        post {
+                            always {
+                                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 Build': {
+                    node("${env.WIN_LABEL}") {
+                        tools {
+                            maven 'Maven 3.5.0 (Windows)'
+                            jdk 'JDK 1.8_121 (Windows Only)'
+                        }
+                        steps {
+                            checkout scm
+                            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
+                            jacoco changeBuildStatus: false, execPattern: 
'**/*.exec'
+                        }
+                        post {
+                            always {
+                                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'
+                            }
+                        }
+                    }
                 }
-            }
-        }
-        stage('Windows Build') {
-            agent {
-                label env.WIN_LABEL
-            }
-            tools {
-                maven 'Maven 3.5.0 (Windows)'
-                jdk 'JDK 1.8_121 (Windows Only)'
-            }
-            steps {
-                checkout scm
-                withEnv(["J9_HOME=${tool('JDK 9 b181')}"]) {
-                    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 -Djdk.home=%J9_HOME%"
-                }
-                jacoco changeBuildStatus: false, execPattern: '**/*.exec'
-            }
-            post {
-                always {
-                    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'
-                }
-            }
+            )
         }
     }
     options {

Reply via email to