Dear all,
I try to set up a DSL script creating a job triggering jobs that take a property file within a build step.
The XML section would be :
<builders>
...
<hudson.plugins.parameterizedtrigger.TriggerBuilder plugin="parameterized-trigger@2.32">
<configs>
<hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
<configs>
<hudson.plugins.parameterizedtrigger.CurrentBuildParameters/>
<hudson.plugins.parameterizedtrigger.FileBuildParameters>
<propertiesFile>myProduct.properties </propertiesFile>
<failTriggerOnMissing>true</failTriggerOnMissing>
<useMatrixChild>false</useMatrixChild>
<onlyExactRuns>false</onlyExactRuns>
</hudson.plugins.parameterizedtrigger.FileBuildParameters>
</configs>
<projects>jobA,jobB,jobC</projects>
<condition>ALWAYS</condition>
<triggerWithNoParameters>false</triggerWithNoParameters>
...etc... </builders>
I cannot find a simple way to achieve that, or I cannot understand why the following code is node valid :
steps {
triggerBuilder{
configs {
blockableBuildTriggerConfig {
projects('jobA','jobB','jobC')
block{
buildStepFailureThreshold('FAILED')
unstableThreshold('UNSTABLE')
failureThreshold('FAILED')
}
configs {
currentBuildParameters()
fileBuildParameters {
propertiesFile(propFilePath)
failTriggerOnMissing(true)
onlyExactRuns(false)
useMatrixChild(false)
}
}
}
}
... etc...
The seed job using this script fails with :
ERROR: (stopStart.groovy, line 25) the following options are required and must be specified: encoding, combinationFilter
Finished: FAILURE
I neither undesrtand why I should I encoding (not available from the WEB UI) and combinationFilter (as matrix is out of scope here)... nor I can imagine how to code these empty param.
For example, encoding() also fails though the DSL Reference says "If not specified, default encoding of the platform is used."
Thanks for your help.
J.L.P.