You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2021/12/07 09:13:55 UTC

[maven-jenkins-lib] branch master updated: Generate site with both JDK 8 and 17, as they behave very differently

This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new cfcdc70  Generate site with both JDK 8 and 17, as they behave very differently
cfcdc70 is described below

commit cfcdc70bb254be482a9e809208c1c8e27194266e
Author: rfscholte <rf...@apache.org>
AuthorDate: Tue Dec 7 10:13:45 2021 +0100

    Generate site with both JDK 8 and 17, as they behave very differently
---
 vars/asfMavenTlpPlgnBuild.groovy | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/vars/asfMavenTlpPlgnBuild.groovy b/vars/asfMavenTlpPlgnBuild.groovy
index d96de6d..f6b206b 100644
--- a/vars/asfMavenTlpPlgnBuild.groovy
+++ b/vars/asfMavenTlpPlgnBuild.groovy
@@ -42,8 +42,8 @@ def call(Map params = [:]) {
     // def failFast = params.containsKey('failFast') ? params.failFast : true
     // Just temporarily
     def failFast = false;
-    def siteJdk = params.containsKey('siteJdk') ? params.siteJdk : '17'
-    def siteMvn = params.containsKey('siteMvn') ? params.siteJdk : '3.6.x'
+    def siteJdks = params.containsKey('siteJdk') ? params.siteJdk : ['8','17']
+    def siteMvn = params.containsKey('siteMvn') ? params.siteMvn : '3.6.x'
     def tmpWs = params.containsKey('tmpWs') ? params.tmpWs : false
     
     taskContext['failFast'] = failFast;
@@ -64,8 +64,10 @@ def call(Map params = [:]) {
         doCreateTask( os, jdk, mvn, tasks, first, 'build', taskContext )
       }
       
-      // doesn't work for multimodules yet
-      doCreateTask( os, siteJdk, siteMvn, tasks, first, 'site', taskContext )
+	  for (def jdk in siteJdks) {
+        // doesn't work for multimodules yet
+        doCreateTask( os, jdk, siteMvn, tasks, first, 'site', taskContext )
+	  }
       
       // run with apache-release profile, consider it a dryRun with SNAPSHOTs
       // doCreateTask( os, siteJdk, siteMvn, tasks, first, 'release', taskContext )