Author: kiwiwings
Date: Mon Jul 31 15:29:28 2017
New Revision: 1803543

URL: http://svn.apache.org/viewvc?rev=1803543&view=rev
Log:
Add Windows jobs

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=1803543&r1=1803542&r2=1803543&view=diff
==============================================================================
--- poi/trunk/jenkins/create_jobs.groovy (original)
+++ poi/trunk/jenkins/create_jobs.groovy Mon Jul 31 15:29:28 2017
@@ -65,6 +65,12 @@ def poijobs = [
     ],
     [ name: 'POI-DSL-SonarQube-Gradle', jdk: '1.8', trigger: 'H 9 * * *', 
gradle: true, sonar: true, skipcigame: true
     ],
+    [ name: 'POI-DSL-Windows-1.6', jdk: '1.6', trigger: 'H */12 * * *', 
skipcigame: true, windows: true, slaves: 'Windows', email: 
'[email protected]'
+    ],
+    [ name: 'POI-DSL-Windows-1.7', jdk: '1.7', trigger: 'H */12 * * *', 
skipcigame: true, windows: true, slaves: 'Windows', email: 
'[email protected]'
+    ],
+    [ name: 'POI-DSL-Windows-1.8', jdk: '1.8', trigger: 'H */12 * * *', 
skipcigame: true, windows: true, slaves: 'Windows', email: 
'[email protected]'
+    ],
 ]
 
 def svnBase = 'https://svn.apache.org/repos/asf/poi/trunk'
@@ -88,7 +94,8 @@ poijobs.each { poijob ->
     def jdkKey = poijob.jdk ?: defaultJdk
     def trigger = poijob.trigger ?: defaultTrigger
     def email = poijob.email ?: defaultEmail
-    def slaves = defaultSlaves + (poijob.slaveAdd ?: '')
+    def slaves = poijob.slaves ?: defaultSlaves + (poijob.slaveAdd ?: '')
+    def antRT = defaultAnt + (poijob.windows ? ' (Windows)' : '')
 
     job(poijob.name) {
         if (poijob.disabled) {
@@ -219,7 +226,7 @@ for more details about the DSL.</b>
                     prop('coverage.enabled', true)
                     // Properties did not work, so I had to use targets instead
                     //properties(poijob.properties ?: '')
-                    antInstallation(defaultAnt)
+                    antInstallation(antRT)
                 }
                 shell('zip -r build/javadocs.zip 
build/tmp/site/build/site/apidocs')
             }
@@ -282,12 +289,12 @@ for more details about the DSL.</b>
                     ant {
                         targets(['clean', 'compile-all'] + (poijob.properties 
?: []))
                         prop('coverage.enabled', true)
-                        antInstallation(defaultAnt)
+                        antInstallation(antRT)
                     }
                     ant {
                         targets(['-Dscratchpad.ignore=true', 'jacocotask', 
'test-all', 'testcoveragereport'] + (poijob.properties ?: []))
                         prop('coverage.enabled', true)
-                        antInstallation(defaultAnt)
+                        antInstallation(antRT)
                     }
                 } else {
                     ant {
@@ -295,14 +302,14 @@ for more details about the DSL.</b>
                         prop('coverage.enabled', true)
                         // Properties did not work, so I had to use targets 
instead
                         //properties(poijob.properties ?: '')
-                        antInstallation(defaultAnt)
+                        antInstallation(antRT)
                     }
                     ant {
                         targets(['run'] + (poijob.properties ?: []))
                         buildFile('src/integrationtest/build.xml')
                         // Properties did not work, so I had to use targets 
instead
                         //properties(poijob.properties ?: '')
-                        antInstallation(defaultAnt)
+                        antInstallation(antRT)
                     }
                 }
             }



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

Reply via email to