forked from ccnet/CruiseControl.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildTransition.cs
More file actions
29 lines (25 loc) · 876 Bytes
/
Copy pathBuildTransition.cs
File metadata and controls
29 lines (25 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
namespace ThoughtWorks.CruiseControl.CCTrayLib
{
public class BuildTransition
{
public static readonly BuildTransition Broken = new BuildTransition("Broken build", ErrorLevel.Error);
public static readonly BuildTransition Fixed = new BuildTransition("Fixed build", ErrorLevel.Info);
public static readonly BuildTransition StillSuccessful = new BuildTransition("Build successful", ErrorLevel.Info);
public static readonly BuildTransition StillFailing = new BuildTransition("Build still failing", ErrorLevel.Warning);
private readonly string caption;
private readonly ErrorLevel errorLevel;
private BuildTransition(string caption, ErrorLevel errorLevel)
{
this.caption = caption;
this.errorLevel = errorLevel;
}
public ErrorLevel ErrorLevel
{
get { return errorLevel; }
}
public override string ToString()
{
return caption;
}
}
}