Skip to content

Commit

Permalink
Fix post build action radio not working
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Nov 22, 2021
1 parent 22900ac commit ae97a26
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions core/src/main/resources/hudson/tasks/BuildTrigger/config.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,11 @@ THE SOFTWARE.
field="childProjects"/>
</f:entry>
<j:if test="${descriptor.showEvenIfUnstableOption(targetType)}"> <!-- TODO JENKINS-16444 this will always be true when first adding step -->
<f:entry title="">
<f:radio name="BuildTrigger.threshold" checked="${instance.threshold==null || instance.threshold.toString()=='SUCCESS'}"
title="${%Trigger only if build is stable}" value="SUCCESS"/>
</f:entry>
<f:entry title="">
title="${%Trigger only if build is stable}" id="SUCCESS" value="threshold-SUCCESS"/>
<f:radio name="BuildTrigger.threshold" checked="${instance.threshold.toString()=='UNSTABLE'}"
title="${%Trigger even if the build is unstable}" value="UNSTABLE"/>
</f:entry>
<f:entry title="">
title="${%Trigger even if the build is unstable}" id="threshold-UNSTABLE" value="UNSTABLE"/>
<f:radio name="BuildTrigger.threshold" checked="${instance.threshold.toString()=='FAILURE'}"
title="${%Trigger even if the build fails}" value="FAILURE"/>
</f:entry>
title="${%Trigger even if the build fails}" id="threshold-FAILURE" value="FAILURE"/>
</j:if>
</j:jelly>

0 comments on commit ae97a26

Please sign in to comment.