-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
job-dsl-plugin 1.39
conditional-buildstep 1.3.3
When using conditionalSteps without a runner, the seed job will succeed but no valid conditional build step will be generated.
Example:
job('example') { steps { conditionalSteps { condition { stringsMatch('${SOME_PARAMETER}', 'pants', false) } steps { shell("echo 'just one step'") } } } }
Generated config XML:
<project> .... <builders> <org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder> <runCondition class="org.jenkins_ci.plugins.run_condition.core.StringsMatchCondition"> <arg1>${SOME_PARAMETER}</arg1> <arg2>pants</arg2> <ignoreCase>false</ignoreCase> </runCondition> <runner class="null"/> <conditionalbuilders> <hudson.tasks.Shell> <command>echo 'just one step'</command> </hudson.tasks.Shell> </conditionalbuilders> </org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder> </builders> ... </project>