aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2016-12-08 09:36:48 +0000
committerDominik Stadler <centic@apache.org>2016-12-08 09:36:48 +0000
commit6fa2e8b21a7a254309cc0d7b00d8899f82ac6834 (patch)
treef11f3da26bf5d4522aa0a75721e44b2e1af700c8
parent47a5dbaeb25c8699d3f736dc9af4daa1cce13f98 (diff)
downloadpoi-6fa2e8b21a7a254309cc0d7b00d8899f82ac6834.tar.gz
poi-6fa2e8b21a7a254309cc0d7b00d8899f82ac6834.zip
Jenkins DSL: Use single-quotes, add back space in OpenJDK JDK name, exclude one more slave that causes strange errors in the JDK 1.8-run
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1773204 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--jenkins/create_jobs.groovy24
1 files changed, 14 insertions, 10 deletions
diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy
index 2a5105f995..92cb6f1079 100644
--- a/jenkins/create_jobs.groovy
+++ b/jenkins/create_jobs.groovy
@@ -13,9 +13,11 @@ 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 * * *',
+ // ubuntu-4 repeatedely failed during Findbugs results collection
+ slaveAdd: '&&!ubuntu-4'
],
- [ name: 'POI-DSL-OpenJDK', jdks: ["OpenJDK"], trigger: 'H */12 * * *',
+ [ name: 'POI-DSL-OpenJDK', jdks: ['OpenJDK'], trigger: 'H */12 * * *',
// H16 does not have OpenJDK 6 installed
slaveAdd: '&&!H16&&!ubuntu-eu2',
// the JDK is missing on some slaves so builds are unstable
@@ -45,19 +47,20 @@ def poijobs = [
],
]
-def svnBase = "https://svn.apache.org/repos/asf/poi/trunk"
+def svnBase = 'https://svn.apache.org/repos/asf/poi/trunk'
def defaultJdks = ['1.6']
def defaultTrigger = 'H/15 * * * *'
def defaultEmail = 'dev@poi.apache.org'
def defaultAnt = 'Ant (latest)'
+def defaultSlaves = 'ubuntu&&!cloud-slave'
def jdkMapping = [
- '1.6': "JDK 1.6 (latest)",
- '1.7': "JDK 1.7 (latest)",
- '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.8 64-bit (on Ubuntu only)",
+ '1.6': 'JDK 1.6 (latest)',
+ '1.7': 'JDK 1.7 (latest)',
+ '1.8': 'JDK 1.8 (latest)',
+ '1.9': 'JDK 9 b142 (early access build) with project Jigsaw',
+ 'OpenJDK': 'OpenJDK 6 (on Ubuntu only) ', // blank is required here until the name in the Jenkins instance is fixed!
+ 'IBMJDK': 'IBM 1.8 64-bit (on Ubuntu only)',
]
poijobs.each { poijob ->
@@ -65,6 +68,7 @@ poijobs.each { poijob ->
def jdks = poijob.jdks ?: defaultJdks
def trigger = poijob.trigger ?: defaultTrigger
def email = poijob.email ?: defaultEmail
+ def slaves = defaultSlaves + (poijob.slaveAdd ?: '')
jdks.each { jdkKey ->
job(poijob.name) {
@@ -108,7 +112,7 @@ Apache POI - the Java API for Microsoft Documents
numToKeep(5)
artifactNumToKeep(1)
}
- label('ubuntu&&!cloud-slave' + (poijob.slaveAdd ?: ''))
+ label(slaves)
environmentVariables {
env('LANG', 'en_US.UTF-8')
}