提交 8aae999f 编写于 作者: K kohsuke

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
上级 9b490771
......@@ -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.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册