This is an automated email from the ASF dual-hosted git repository.
olamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-jenkins-lib.git
The following commit(s) were added to refs/heads/master by this push:
new 0b2a8b7 Update multiJdkBuild.groovy
0b2a8b7 is described below
commit 0b2a8b7da099f57d1d8cbeaf9ef0dedebce4fd07
Author: Olivier Lamy <[email protected]>
AuthorDate: Thu Jun 16 20:35:51 2022 +1000
Update multiJdkBuild.groovy
---
vars/multiJdkBuild.groovy | 31 ++++++++++++++++++-------------
1 file changed, 18 insertions(+), 13 deletions(-)
diff --git a/vars/multiJdkBuild.groovy b/vars/multiJdkBuild.groovy
index 38c8aa0..62825f7 100644
--- a/vars/multiJdkBuild.groovy
+++ b/vars/multiJdkBuild.groovy
@@ -69,20 +69,25 @@ def call(Map params = [:]) {
}
stages{
- stage("Build JDK8") {
- agent { node { label 'ubuntu' } }
- options { timeout(time: 120, unit: 'MINUTES') }
- steps {
- mavenBuild(jdk, cmdline, mvnName, publishers)
- }
- }
- stage("Build JDK11") {
- agent { node { label 'ubuntu' } }
- options { timeout(time: 120, unit: 'MINUTES') }
- steps {
- mavenBuild(jdk11, cmdlineJdk11, mvnName, publishers)
+ stage("Parallel Stage") {
+ parallel {
+ stage("Build JDK8") {
+ agent { node { label 'ubuntu' } }
+ options { timeout(time: 120, unit: 'MINUTES') }
+ steps {
+ mavenBuild(jdk, cmdline, mvnName, publishers)
+ }
+ }
+ stage("Build JDK11") {
+ agent { node { label 'ubuntu' } }
+ options { timeout(time: 120, unit: 'MINUTES') }
+ steps {
+ mavenBuild(jdk11, cmdlineJdk11, mvnName, publishers)
+ }
+ }
}
- }
+ }
+
}
post {
always {