You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2016/12/02 11:07:22 UTC

svn commit: r1772327 - /poi/trunk/jenkins/create_jobs.groovy

Author: centic
Date: Fri Dec  2 11:07:22 2016
New Revision: 1772327

URL: http://svn.apache.org/viewvc?rev=1772327&view=rev
Log:
Jenkins DSL: 
* Add some comments
* Add disabled Job for IBM JDK
* Enable POI-DSL-1.6, leave the others disabled for now

Modified:
    poi/trunk/jenkins/create_jobs.groovy

Modified: poi/trunk/jenkins/create_jobs.groovy
URL: http://svn.apache.org/viewvc/poi/trunk/jenkins/create_jobs.groovy?rev=1772327&r1=1772326&r2=1772327&view=diff
==============================================================================
--- poi/trunk/jenkins/create_jobs.groovy (original)
+++ poi/trunk/jenkins/create_jobs.groovy Fri Dec  2 11:07:22 2016
@@ -1,8 +1,10 @@
-// You can use http://job-dsl.herokuapp.com/ to validate the code before checkin
+// This script is used as input to the Jenkins Job DSL plugin to create all the build-jobs that
+// Apache POI uses on the public Jenkins instance at https://builds.apache.org/view/POI/
+//
+// See https://github.com/jenkinsci/job-dsl-plugin/wiki for information about the DSL, you can
+// use http://job-dsl.herokuapp.com/ to validate the code before checkin
 // 
 
-// POI-JDK-IBM: This config was not enabled in Jenkins ever because we did not find the JDK on any of the slaves, we can check this again later
-
 def triggerSundays = '''
 # only run this once per week on Sundays
 H H * * 0
@@ -11,28 +13,31 @@ H H * * 0
 def poijobs = [
     [ name: 'POI-DSL-1.6', jdks: ['1.6'] 
     ],
-    [ name: 'POI-DSL-1.8', jdks: ['1.8'], trigger: 'H */12 * * *' 
+    [ name: 'POI-DSL-1.8', jdks: ['1.8'], trigger: 'H */12 * * *', disabled: true
     ],
-    [ name: 'POI-DSL-OpenJDK', jdks: ["OpenJDK"], trigger: 'H */12 * * *' 
+    [ name: 'POI-DSL-OpenJDK', jdks: ["OpenJDK"], trigger: 'H */12 * * *', disabled: true
     ],
     [ name: 'POI-DSL-1.9', jdks: ['1.9'], trigger: triggerSundays,
         properties: ['-Dmaxpermsize=-Dthis.is.a.dummy=true', '-Djava9addmods=-addmods', '-Djava9addmodsvalue=java.xml.bind', '-Djava.locale.providers=JRE,CLDR'],
-        email: 'centic@apache.org' 
+        email: 'centic@apache.org', disabled: true
+    ],
+    // This config was not enabled in Jenkins ever because we did not find the JDK on any of the slaves, we can check this again later
+    [ name: 'POI-DSL-IBM-JDK', jdks: ['IBMJDK'], trigger: triggerSundays, noScratchpad: true, disabled: true
     ],
     [ name: 'POI-DSL-old-Xerces', jdks: ['1.6'], trigger: triggerSundays,
         shell: 'mkdir -p compile-lib && test -f compile-lib/xercesImpl-2.6.1.jar || wget -O compile-lib/xercesImpl-2.6.1.jar http://repo1.maven.org/maven2/xerces/xercesImpl/2.6.1/xercesImpl-2.6.1.jar\n',
         // the property triggers using Xerces as XML Parser and previously showed some exception that can occur
-        properties: ['-Dadditionaljar=compile-lib/xercesImpl-2.6.1.jar'] 
+        properties: ['-Dadditionaljar=compile-lib/xercesImpl-2.6.1.jar'], disabled: true
     ],
-    [ name: 'POI-DSL-Maven', trigger: 'H */4 * * *', maven: true 
+    [ name: 'POI-DSL-Maven', trigger: 'H */4 * * *', maven: true, disabled: true
     ],
-    [ name: 'POI-DSL-regenerate-javadoc', trigger: triggerSundays, javadoc: true 
+    [ name: 'POI-DSL-regenerate-javadoc', trigger: triggerSundays, javadoc: true, disabled: true
     ],
-    [ name: 'POI-DSL-API-Check', jdks: ['1.7'], trigger: '@daily', apicheck: true 
+    [ name: 'POI-DSL-API-Check', jdks: ['1.7'], trigger: '@daily', apicheck: true, disabled: true
     ],
-    [ name: 'POI-DSL-Gradle', jdks: ['1.7'], trigger: triggerSundays, email: 'centic@apache.org', gradle: true 
+    [ name: 'POI-DSL-Gradle', jdks: ['1.7'], trigger: triggerSundays, email: 'centic@apache.org', gradle: true, disabled: true
     ],
-    [ name: 'POI-DSL-no-scratchpad', trigger: triggerSundays, noScratchpad: true 
+    [ name: 'POI-DSL-no-scratchpad', trigger: triggerSundays, noScratchpad: true, disabled: true
     ],
 ]
 
@@ -48,6 +53,7 @@ def jdkMapping = [
     '1.8': "JDK 1.8 (latest)",
     '1.9': "JDK 9 b142 (early access build) with project Jigsaw",
     "OpenJDK": "OpenJDK 6 (on Ubuntu only)",
+    "IBMJDK": "IBM 1.7 64-bit (on Ubuntu only)",
 ]
 
 poijobs.each { poijob ->
@@ -58,8 +64,9 @@ poijobs.each { poijob ->
 
     jdks.each { jdkKey ->
         job(poijob.name) {
-            // for now we create the jobs in disabled state so they do not run for now
-            disabled()
+            if (poijob.disabled) {
+                disabled()
+            }
             
             description('''
 <img src="http://poi.apache.org/resources/images/project-logo.jpg" />



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org