diff options
Diffstat (limited to 'jenkins/create_jobs.groovy')
-rw-r--r-- | jenkins/create_jobs.groovy | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy index 15ea158dc9..b8f490e272 100644 --- a/jenkins/create_jobs.groovy +++ b/jenkins/create_jobs.groovy @@ -63,7 +63,7 @@ def poijobs = [ ], [ name: 'POI-DSL-Gradle', trigger: triggerSundays, email: 'centic@apache.org', gradle: true ], - [ name: 'POI-DSL-no-scratchpad', trigger: triggerSundays, noScratchpad: true + [ name: 'POI-DSL-no-scratchpad', trigger: triggerSundays, noScratchpad: true, gradle: true ], [ name: 'POI-DSL-SonarQube', jdk: '1.11', trigger: 'H 7 * * *', maven: true, sonar: true, skipcigame: true, email: 'kiwiwings@apache.org', @@ -445,17 +445,9 @@ poijobs.each { poijob -> gradle { tasks('clean jenkins') useWrapper(true) - } - } else if (poijob.noScratchpad) { - ant { - targets(['clean', 'compile'] + (poijob.properties ?: [])) - prop('coverage.enabled', true) - antInstallation(antRT) - } - ant { - targets(['-Dscratchpad.ignore=true', 'jacocotask', 'test-all', 'testcoveragereport'] + (poijob.properties ?: [])) - prop('coverage.enabled', true) - antInstallation(antRT) + if (poijob.noScratchpad) { + switches('-Pscratchpad.ignore=true') + } } } else { ant { |