Skip to content

Commit

Permalink
[JENKINS-15212] removeBadge(s) whitelisted.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedam committed Sep 15, 2014
1 parent 00a39a3 commit 6846753
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -151,13 +151,15 @@ public void addWarningBadge(String text) {
public void addErrorBadge(String text) {
build.getActions().add(GroovyPostbuildAction.createErrorBadge(text));
}
@Whitelisted
public void removeBadges() {
List<Action> actions = build.getActions();
List<GroovyPostbuildAction> badgeActions = build.getActions(GroovyPostbuildAction.class);
for(GroovyPostbuildAction action : badgeActions) {
actions.remove(action);
}
}
@Whitelisted
public void removeBadge(int index) {
List<Action> actions = build.getActions();
List<GroovyPostbuildAction> badgeActions = build.getActions(GroovyPostbuildAction.class);
Expand Down

0 comments on commit 6846753

Please sign in to comment.