Skip to content

Commit

Permalink
[JENKINS-47168] - Print "built on" using display name (#3051)
Browse files Browse the repository at this point in the history
[JENKINS-47168] - Print "built on" using display name
  • Loading branch information
mmitche authored and oleg-nenashev committed Oct 13, 2017
1 parent 860d9c5 commit f2d470d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/AbstractBuild.java
Expand Up @@ -456,7 +456,7 @@ public Result run(@Nonnull BuildListener listener) throws Exception {
if (node instanceof Jenkins) {
listener.getLogger().print(Messages.AbstractBuild_BuildingOnMaster());
} else {
listener.getLogger().print(Messages.AbstractBuild_BuildingRemotely(ModelHyperlinkNote.encodeTo("/computer/" + builtOn, builtOn)));
listener.getLogger().print(Messages.AbstractBuild_BuildingRemotely(ModelHyperlinkNote.encodeTo("/computer/" + builtOn, node.getDisplayName())));
Set<LabelAtom> assignedLabels = new HashSet<LabelAtom>(node.getAssignedLabels());
assignedLabels.remove(node.getSelfLabel());
if (!assignedLabels.isEmpty()) {
Expand Down

0 comments on commit f2d470d

Please sign in to comment.