提交 d660d60e 编写于 作者: J Jesse Glick

[FIXED JENKINS-23191] f:radio is not databinding-aware and does not correctly...

[FIXED JENKINS-23191] f:radio is not databinding-aware and does not correctly handle multiple configuration sections unless you make it.
上级 e1e7f1b9
......@@ -58,6 +58,9 @@ Upcoming changes</a>
<li class=rfe>
Add CLI commands to add jobs to and remove jobs from views (add-job-to-view, remove-job-from-view).
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-23361">issue 23361</a>)
<li class=bug>
Failed to correctly resave a project configuration containing both a forward and a reverse build trigger.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-23191">issue 23191</a>)
<li class="major bug">
HTTP error 405 when trying to restart ssh host.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-23094">issue 23094</a>)
......
......@@ -32,15 +32,15 @@ THE SOFTWARE.
</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="threshold" checked="${instance.threshold==null || instance.threshold.toString()=='SUCCESS'}"
<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="">
<f:radio name="threshold" checked="${instance.threshold.toString()=='UNSTABLE'}"
<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="">
<f:radio name="threshold" checked="${instance.threshold.toString()=='FAILURE'}"
<f:radio name="BuildTrigger.threshold" checked="${instance.threshold.toString()=='FAILURE'}"
title="${%Trigger even if the build fails}" value="FAILURE"/>
</f:entry>
</j:if>
......
......@@ -29,15 +29,15 @@ THE SOFTWARE.
<f:textbox autoCompleteDelimChar=","/>
</f:entry>
<f:entry title="">
<f:radio name="threshold" checked="${instance.threshold==null || instance.threshold.toString()=='SUCCESS'}"
<f:radio name="ReverseBuildTrigger.threshold" checked="${instance.threshold==null || instance.threshold.toString()=='SUCCESS'}"
title="${%Trigger only if build is stable}" value="SUCCESS"/>
</f:entry>
<f:entry title="">
<f:radio name="threshold" checked="${instance.threshold.toString()=='UNSTABLE'}"
<f:radio name="ReverseBuildTrigger.threshold" checked="${instance.threshold.toString()=='UNSTABLE'}"
title="${%Trigger even if the build is unstable}" value="UNSTABLE"/>
</f:entry>
<f:entry title="">
<f:radio name="threshold" checked="${instance.threshold.toString()=='FAILURE'}"
<f:radio name="ReverseBuildTrigger.threshold" checked="${instance.threshold.toString()=='FAILURE'}"
title="${%Trigger even if the build fails}" value="FAILURE"/>
</f:entry>
</j:jelly>
......@@ -29,6 +29,7 @@ THE SOFTWARE.
Note that safari doesn't support onchange.
Beware that the name attribute should be uniquified among all radio blocks on the page, such as by prefixing it with "G0025." or whatever gensym.
<st:attribute name="name" />
<st:attribute name="checked" />
<st:attribute name="value" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册