Skip to content

Commit

Permalink
Change rss feed build name
Browse files Browse the repository at this point in the history
With #2845 (released with Jenkins
2.58), if no display name is explicitly set the feed title contains only
the build number, which is not very useful for non project specific feeds
like the global /rssFailed feed.

This commit restores the old behaviour and honours the new behaviour of
pull request 2845.
  • Loading branch information
ragaller committed May 8, 2017
1 parent 909cdb7 commit aec91c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/main/java/hudson/model/Run.java
Expand Up @@ -2422,7 +2422,10 @@ public final class KeepLogBuildBadge implements BuildBadgeAction {

private static class DefaultFeedAdapter implements FeedAdapter<Run> {
public String getEntryTitle(Run entry) {
return entry.getDisplayName()+" ("+entry.getBuildStatusSummary().message+")";
if (entry.hasCustomDisplayName()) {
return entry.getDisplayName()+" ("+entry.getBuildStatusSummary().message+")";
}
return entry+" ("+entry.getBuildStatusSummary().message+")";
}

public String getEntryUrl(Run entry) {
Expand Down

0 comments on commit aec91c4

Please sign in to comment.