Skip to content
Browse files
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 4eb5bd32d2a822f87dca70d1fad9eca6e15d2266
@@ -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);
@@ -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);
@@ -72,14 +74,15 @@ public StatusImage getImage(BallColor color, String style) {

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

@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<svg xmlns="" width="98" height="20">
<linearGradient id="a" x2="0" y2="100%">
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
<stop offset="1" stop-opacity=".1"/>
<rect rx="3" width="98" height="20" fill="#555"/>
<rect rx="3" x="37" width="61" height="20" fill="#9f9f9f"/>
<path fill="#9f9f9f" d="M37 0h4v20h-4z"/>
<rect rx="3" width="98" height="20" fill="url(#a)"/>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="19.5" y="15" fill="#010101" fill-opacity=".3">build</text>
<text x="19.5" y="14">build</text>
<text x="66.5" y="15" fill="#010101" fill-opacity=".3">aborted</text>
<text x="66.5" y="14">aborted</text>
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<svg xmlns="" width="98" height="18">
<linearGradient id="a" x2="0" y2="100%">
<stop offset="0" stop-color="#fff" stop-opacity=".7"/>
<stop offset=".1" stop-color="#aaa" stop-opacity=".1"/>
<stop offset=".9" stop-opacity=".3"/>
<stop offset="1" stop-opacity=".5"/>
<rect rx="4" width="98" height="18" fill="#555"/>
<rect rx="4" x="37" width="61" height="18" fill="#9f9f9f"/>
<path fill="#9f9f9f" d="M37 0h4v18h-4z"/>
<rect rx="4" width="98" height="18" fill="url(#a)"/>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="19.5" y="13" fill="#010101" fill-opacity=".3">build</text>
<text x="19.5" y="12">build</text>
<text x="66.5" y="13" fill="#010101" fill-opacity=".3">aborted</text>
<text x="66.5" y="12">aborted</text>

0 comments on commit 4eb5bd3

Please sign in to comment.