mirror of https://github.com/apache/poi.git
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
This commit is contained in:
parent
572c1d9285
commit
fc96f1e4af
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue