mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
Build history graph now shows unstable and aborted builds in proper color
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10785 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
9b490771b0
commit
8aae999fa0
2 files changed
+7
-2
No files matched your search
@@ -980,8 +980,12 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
|
||||
// TODO: consider gradation. See
|
||||
// http://www.javadrive.jp/java2d/shape/index9.html
|
||||
Result r = run.getResult();
|
||||
if (r == Result.FAILURE || r == Result.ABORTED)
|
||||
if (r == Result.FAILURE)
|
||||
return ColorPalette.RED;
|
||||
else if (r == Result.UNSTABLE)
|
||||
return ColorPalette.YELLOW;
|
||||
else if (r == Result.ABORTED || r == Result.NOT_BUILT)
|
||||
return ColorPalette.GREY;
|
||||
else
|
||||
return ColorPalette.BLUE;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,8 @@ public class ColorPalette {
|
||||
public static final Color RED = new Color(0xEF,0x29,0x29);
|
||||
public static final Color YELLOW = new Color(0xFC,0xE9,0x4F);
|
||||
public static final Color BLUE = new Color(0x72,0x9F,0xCF);
|
||||
|
||||
public static final Color GREY = new Color(0xAB,0xAB,0xAB);
|
||||
|
||||
/**
|
||||
* Color list usable for generating line charts.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user