jenkins-job-builder/tests/builders/fixtures/conditional-step-multiple-steps.xml
Jef Mallal ad5ae3e2d6 Builders: conditional-step fix
When multiple steps are used, the condition has the wrong kind of
conditional and is always "Always".

Add test that exercise multiple steps with a And condition.
Also add a dummy test when multiple steps are listed.

Fix https://storyboard.openstack.org/#!/story/2000594

Change-Id: I4802bec9db407a09b23eea7e31235136d8bb72c2
2017-06-05 22:04:56 +02:00

18 lines
650 B
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<builders>
<org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder>
<conditionalbuilders>
<hudson.tasks.Shell>
<command>first command</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>second command</command>
</hudson.tasks.Shell>
</conditionalbuilders>
<runCondition class="org.jenkins_ci.plugins.run_condition.core.AlwaysRun"/>
<runner class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"/>
</org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder>
</builders>
</project>