]> source.dussan.org Git - poi.git/commitdiff
Jenkins DSL: Add a workaround to run "ant init" before building with Gradle
authorDominik Stadler <centic@apache.org>
Tue, 6 Apr 2021 20:42:32 +0000 (20:42 +0000)
committerDominik Stadler <centic@apache.org>
Tue, 6 Apr 2021 20:42:32 +0000 (20:42 +0000)
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

index d71f3dcc690dd807bf199e54fd48aec5384457b7..f5773b0c49ed31d460209b2dd917367a15aab7bb 100644 (file)
@@ -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)