Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #16 from DerJJ/master
[JENKINS-19319] Distinguish between Aborted and Failed in the status icon
  • Loading branch information
mgedmin committed Aug 31, 2015
2 parents 48167d5 + 5917f4c commit 4eb5bd3
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/org/jenkinsci/plugins/badge/ImageResolver.java
Expand Up @@ -41,6 +41,7 @@ public ImageResolver() throws IOException{
new StatusImage("build-unstable-yellow.svg"),
new StatusImage("build-passing-brightgreen.svg"),
new StatusImage("build-running-blue.svg"),
new StatusImage("build-aborted-lightgrey.svg"),
new StatusImage("build-unknown-lightgrey.svg")
};
styles.put("plastic", plasticImages);
Expand All @@ -50,6 +51,7 @@ public ImageResolver() throws IOException{
new StatusImage("build-unstable-yellow-flat.svg"),
new StatusImage("build-passing-brightgreen-flat.svg"),
new StatusImage("build-running-blue-flat.svg"),
new StatusImage("build-aborted-lightgrey-flat.svg"),
new StatusImage("build-unknown-lightgrey-flat.svg")
};
styles.put("flat", flatImages);
Expand All @@ -72,14 +74,15 @@ public StatusImage getImage(BallColor color, String style) {

switch (color) {
case RED:
case ABORTED:
return images[0];
case YELLOW:
return images[1];
case BLUE:
return images[2];
case ABORTED:
return images[4];
default:
return images[4];
return images[5];
}
}

Expand Down
17 changes: 17 additions & 0 deletions src/main/webapp/status/build-aborted-lightgrey-flat.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/main/webapp/status/build-aborted-lightgrey.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4eb5bd3

Please sign in to comment.