Skip to content
Permalink
Browse files
[JENKINS-15212] removeBadge(s) whitelisted.
  • Loading branch information
ikedam committed Sep 15, 2014
1 parent 00a39a3 commit 6846753d9d994c2c9a0fc654b9ffbce6c2991d6f
Showing 1 changed file with 2 additions and 0 deletions.
@@ -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);

0 comments on commit 6846753

Please sign in to comment.