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

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


The following commit(s) were added to refs/heads/master by this push:
     new 5d1e6f3  Update asfStandardUtilitiesBuild.groovy
5d1e6f3 is described below

commit 5d1e6f3a678c9eea38d5c01aaddd99afd16f5e07
Author: Eric Barboni <[email protected]>
AuthorDate: Tue Feb 16 17:33:28 2021 +0100

    Update asfStandardUtilitiesBuild.groovy
    
    try to build nbmplugin and sibling on several jdk
---
 vars/asfStandardUtilitiesBuild.groovy | 33 +++++++++++++++------------------
 1 file changed, 15 insertions(+), 18 deletions(-)

diff --git a/vars/asfStandardUtilitiesBuild.groovy 
b/vars/asfStandardUtilitiesBuild.groovy
index 3364679..07f3083 100644
--- a/vars/asfStandardUtilitiesBuild.groovy
+++ b/vars/asfStandardUtilitiesBuild.groovy
@@ -49,28 +49,23 @@ def call(Map params = [:]) {
             pollSCM('H/5 * * * * ')
        }
         stages{
-            stage("Build with xvfb") {
+            stage("Build with jdk 8 ") {
                 agent { node { label 'ubuntu' } }
-                options { timeout(time: 120, unit: 'MINUTES') }
-                when {expression {
-                        return xvfb
-                    }
-                }
+                options { timeout(time: 120, unit: 'MINUTES') }                
                 steps{
-                    wrap([$class: 'Xvfb', additionalOptions: '', 
assignedLabels: '', displayNameOffset: 0, installationName: 'Xvfb', 
parallelBuild: true, screen: '']) {
-                        mavenBuild( jdk, cmdline, mvnName, publishers)
-                    }
+                    mavenBuild( 'jdk_1.8_latest', cmdline, mvnName, 
publishers,true)        
                 }
             }
-            stage("Build") {
+            stage("Build on recent jdk") {
                 agent { node { label 'ubuntu' } }
-                options { timeout(time: 120, unit: 'MINUTES') }
-                when {expression {
-                        return !xvfb
-                    }
-                }
+                options { timeout(time: 120, unit: 'MINUTES') }               
                 steps{
-                    mavenBuild( jdk, cmdline, mvnName, publishers)
+                   def jdklist = 
['jdk_11_latest','jdk_12_latest','jdk_13_latest','jdk_14_latest','jdk_15_latest']
+                   for (ajdk in jdklist) {
+                       stage("build on $ajdk") {    
+                               mavenBuild( ajdk, cmdline, mvnName, 
publishers,false)
+                       }
+                   }
                     
                 }
             }
@@ -112,7 +107,7 @@ def call(Map params = [:]) {
  * @param publishers array of publishers to configure (need to be defined as 
we publisherStrategy: 'EXPLICIT')
  * @return the Jenkinsfile step representing a maven build
  */
-def mavenBuild(jdk, cmdline, mvnName, publishers) {
+def mavenBuild(jdk, cmdline, mvnName, publishers,archive) {
     def localRepo = "../.maven_repositories/${env.EXECUTOR_NUMBER}" // 
".repository" //
     //def settingsName = 'archiva-uid-jenkins'
     def mavenOpts = '-Xms1g -Xmx4g -Djava.awt.headless=true'
@@ -129,7 +124,9 @@ def mavenBuild(jdk, cmdline, mvnName, publishers) {
         sh "mvn -V -B -U -e -DskipBrowserTests 
-Dmaven.test.failure.ignore=true $cmdline "
        sh "mv target/*-site.jar WEBSITE.zip"
     }
-    archiveArtifacts 'WEBSITE.zip'
+    if (archive) {
+       archiveArtifacts 'WEBSITE.zip'
+    }
 }
 
 def notifyBuild(String buildStatus) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to