提交 aca8e281 编写于 作者: V Vincent Latombe

[JENKINS-1034] Fixed default value

上级 02827fc0
......@@ -301,7 +301,7 @@ public class BuildTrigger extends Recorder implements DependecyDeclarer {
}
return new BuildTrigger(
childProjectsString,
formData.getString("threshold"));
formData.optString("threshold", Result.SUCCESS.toString()));
}
@Override
......
......@@ -31,6 +31,10 @@ THE SOFTWARE.
field="childProjects"/>
</f:entry>
<j:if test="${descriptor.showEvenIfUnstableOption(targetType)}">
<f:entry title="">
<f:radio name="threshold" checked="${instance.threshold==null || instance.threshold.toString()=='SUCCESS'}"
title="${%Trigger only if build succeeds}" value="SUCCESS"/>
</f:entry>
<f:entry title="">
<f:radio name="threshold" checked="${instance.threshold.toString()=='UNSTABLE'}"
title="${%Trigger even if the build is unstable}" value="UNSTABLE"/>
......
......@@ -21,5 +21,6 @@
# THE SOFTWARE.
Projects\ to\ build=Projets à construire
Trigger\ only\ if\ build\ succeeds=Déclencher uniquement si le build réussit
Trigger\ even\ if\ the\ build\ is\ unstable=Déclencher même si le build est instable
Trigger\ even\ if\ the\ build\ fails=Déclencher même si le build échoue
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册