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

Better display name when there is no defined SCM.

上级 4e24f702
......@@ -398,7 +398,7 @@ public class SCMTrigger extends Trigger<Item> {
for (SCM scm : job().getSCMs()) {
descriptors.add(scm.getDescriptor());
}
return Messages.SCMTrigger_getDisplayName(descriptors.size() == 1 ? descriptors.iterator().next().getDisplayName() : "?");
return descriptors.size() == 1 ? Messages.SCMTrigger_getDisplayName(descriptors.iterator().next().getDisplayName()) : Messages.SCMTrigger_BuildAction_DisplayName();
}
public String getUrlName() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册