3faf544887
In order for the conditional step plugin to work properly, a more detailed status is required otherwise the current build status is not evaluated properly and is set to SUCCESS in all cases. A local mapping of the java hudson.model.Result class was created to unify build statuses names, ordinal and color scheme. Change-Id: If8a0090b7cd51551ef6756361f6e45af3df1218d
25 lines
903 B
XML
25 lines
903 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<builders>
|
|
<org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder>
|
|
<condition class="org.jenkins_ci.plugins.run_condition.core.StatusCondition">
|
|
<worstResult>
|
|
<name>UNSTABLE</name>
|
|
<ordinal>1</ordinal>
|
|
<color>YELLOW</color>
|
|
<completeBuild>true</completeBuild>
|
|
</worstResult>
|
|
<bestResult>
|
|
<name>SUCCESS</name>
|
|
<ordinal>0</ordinal>
|
|
<color>BLUE</color>
|
|
<completeBuild>true</completeBuild>
|
|
</bestResult>
|
|
</condition>
|
|
<runner class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"/>
|
|
<buildStep class="hudson.tasks.Shell">
|
|
<command>sl</command>
|
|
</buildStep>
|
|
</org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder>
|
|
</builders>
|
|
</project> |