aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2021-08-09 22:34:23 +0000
committerAndreas Beeker <kiwiwings@apache.org>2021-08-09 22:34:23 +0000
commit0b89ad3f77623c9b335c5fac96e7001d6e20a953 (patch)
tree8c193bd5627bf85577a2ea307c5e3821d5e896e9
parent700334b0f11d0f53deaa3a441ff63875936e484d (diff)
downloadpoi-0b89ad3f77623c9b335c5fac96e7001d6e20a953.tar.gz
poi-0b89ad3f77623c9b335c5fac96e7001d6e20a953.zip
use gradle as default build tool
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892143 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--jenkins/create_jobs.groovy15
1 files changed, 8 insertions, 7 deletions
diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy
index 60b86aaea0..fd7f3c5d4d 100644
--- a/jenkins/create_jobs.groovy
+++ b/jenkins/create_jobs.groovy
@@ -14,7 +14,7 @@ def xercesUrl = 'https://repo1.maven.org/maven2/xerces/xercesImpl/2.6.1/xercesIm
def xercesLib = './xercesImpl-2.6.1.jar'
def poijobs = [
- [ name: 'POI-DSL-1.8', trigger: 'H */12 * * *'
+ [ name: 'POI-DSL-1.8', trigger: 'H */12 * * *', gradle: true
],
[ name: 'POI-DSL-OpenJDK', jdk: 'OpenJDK 1.8', trigger: 'H */12 * * *',
// only a limited set of nodes still have OpenJDK 8 (on Ubuntu) installed
@@ -39,11 +39,11 @@ def poijobs = [
// let's save some CPU cycles here, 14 is not a LTS and JDK 15 is GA as of 15 September 2020
disabled: true
],
- [ name: 'POI-DSL-1.15', jdk: '1.15', trigger: triggerSundays, skipcigame: true
+ [ name: 'POI-DSL-1.15', jdk: '1.15', trigger: triggerSundays, skipcigame: true, gradle: true
],
// building with JDK 16 fails currently because of findbugs/spotbugs
// therefore we do not set a trigger for now and only run it manually
- [ name: 'POI-DSL-1.16', jdk: '1.16', trigger: '', skipcigame: true
+ [ name: 'POI-DSL-1.16', jdk: '1.16', trigger: 'H */12 * * *', skipcigame: true, gradle: true
],
[ name: 'POI-DSL-IBM-JDK', jdk: 'IBMJDK', trigger: triggerSundays, skipcigame: true
],
@@ -61,9 +61,7 @@ def poijobs = [
// it was impossible to make this run stable in Gradle, thus disabling this for now
[ name: 'POI-DSL-API-Check', trigger: '@daily', apicheck: true, disabled: true
],
- [ name: 'POI-DSL-Gradle', trigger: triggerSundays, email: 'centic@apache.org', gradle: true,
- // Gradle will not run any tests if the code is up-to-date, therefore manually mark the files as updated
- addShell: 'touch --no-create build/*/build/test-results/TEST-*.xml build/*/build/test-results/test/TEST-*.xml'
+ [ name: 'POI-DSL-Gradle', trigger: triggerSundays, email: 'centic@apache.org', gradle: true
],
[ name: 'POI-DSL-no-scratchpad', trigger: triggerSundays, noScratchpad: true
],
@@ -439,6 +437,9 @@ poijobs.each { poijob ->
}
// For Jobs that should still have the default set of publishers we can configure different steps here
if(poijob.gradle) {
+ // Gradle will not run any tests if the code is up-to-date, therefore manually mark the files as updated
+ shellEx(delegate, 'touch --no-create build/*/build/test-results/TEST-*.xml build/*/build/test-results/test/TEST-*.xml', poijob)
+
// this is a workaround until the Gradle build can do this compilation before invoking any
// Ant script or when building via Ant is removed completely
ant {
@@ -447,7 +448,7 @@ poijobs.each { poijob ->
}
gradle {
- tasks('check')
+ tasks('jenkins')
useWrapper(true)
}
} else if (poijob.noScratchpad) {