Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
JENKINS-39714: No badge shown for unstable builds
-adapted the permalink to be shown also for unstable builds
-this also causes the list view column to show an unstable build
  • Loading branch information
shillner committed Nov 15, 2016
1 parent cc15567 commit e5284cb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -42,7 +42,7 @@ public class LastSuccessfulReleasePermalink extends PeepholePermalink {
public boolean apply(Run<?, ?> run) {
UnleashBadgeAction badgeAction = run.getAction(UnleashBadgeAction.class);
if (badgeAction != null) {
return !run.isBuilding() && badgeAction.isSuccessfulBuild();
return !run.isBuilding() && (badgeAction.isSuccessfulBuild() || badgeAction.isUnstableBuild());
}
return false;
}
Expand Down

0 comments on commit e5284cb

Please sign in to comment.