-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathGitHubStatusChecksConfigurations.java
More file actions
79 lines (65 loc) · 1.8 KB
/
GitHubStatusChecksConfigurations.java
File metadata and controls
79 lines (65 loc) · 1.8 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package io.jenkins.plugins.checks.github.status;
import hudson.model.Job;
/**
* Configurations for users to customize status checks.
*/
public interface GitHubStatusChecksConfigurations {
/**
* Defines the status checks name which is also used as identifier for GitHub checks.
*
* @return the name of status checks
*/
String getName();
/**
* Defines whether to skip publishing status checks.
*
* @return true to skip publishing checks
*/
boolean isSkip();
/**
* Defines whether to publish unstable builds as neutral status checks.
*
* @return true to publish unstable builds as neutral status checks.
*/
boolean isUnstableBuildNeutral();
/**
* Defines whether to suppress log output in status checks.
*
* @return true to suppress logs
*/
boolean isSuppressLogs();
/**
* Returns whether to suppress progress updates from the {@code io.jenkins.plugins.checks.status.FlowExecutionAnalyzer}.
* Queued, Checkout and Completed will still run but not 'onNewHead'
*
* @return true if progress updates should be skipped.
*/
boolean isSkipProgressUpdates();
boolean isEnforceSkipProgressUpdates();
}
class DefaultGitHubStatusChecksConfigurations implements GitHubStatusChecksConfigurations {
@Override
public String getName() {
return "Jenkins";
}
@Override
public boolean isSkip() {
return false;
}
@Override
public boolean isUnstableBuildNeutral() {
return false;
}
@Override
public boolean isSuppressLogs() {
return false;
}
@Override
public boolean isSkipProgressUpdates() {
return false;
}
@Override
public boolean isEnforceSkipProgressUpdates() {
return false;
}
}