From fc96f1e4afe88ee5e44a6e8e607fa481c518943a Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Tue, 6 Apr 2021 20:42:32 +0000 Subject: [PATCH] Jenkins DSL: Add a workaround to run "ant init" before building with Gradle Otherwise the Ant-helpers are not compiled properly currently We should remove this as soon as Gradle build is working standalone git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888450 13f79535-47bb-0310-9956-ffa450edef68 --- jenkins/create_jobs.groovy | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy index d71f3dcc69..f5773b0c49 100644 --- a/jenkins/create_jobs.groovy +++ b/jenkins/create_jobs.groovy @@ -386,6 +386,13 @@ poijobs.each { poijob -> steps { shellEx(delegate, shellcmds, 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 { + targets(['init'] + (poijob.properties ?: [])) + antInstallation(antRT) + } + gradle { switches('-PenableSonar') switches('-Dsonar.login=${POI_SONAR_TOKEN}') @@ -414,6 +421,13 @@ poijobs.each { poijob -> } // For Jobs that should still have the default set of publishers we can configure different steps here if(poijob.gradle) { + // 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 { + targets(['init'] + (poijob.properties ?: [])) + antInstallation(antRT) + } + gradle { tasks('check') useWrapper(true)