Package io.jenkins.plugins.checks.status
Class AbstractStatusChecksProperties
java.lang.Object
io.jenkins.plugins.checks.status.AbstractStatusChecksProperties
- All Implemented Interfaces:
ExtensionPoint
Extension points for implementations to provide status checks properties. When no implementations is provided for a
job, a
DefaultStatusCheckProperties will be used.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringReturns the name of the status check.abstract booleanisApplicable(Job<?, ?> job) Returns whether the implementation is applicable for thejob.abstract booleanReturns whether to skip publishing status checks.booleanisSkipProgressUpdates(Job<?, ?> job) Returns whether to suppress intermediate progress updates: the "queued" status published when the job is scheduled, the "in progress" status published after each SCM checkout, and the stage updates from theFlowExecutionAnalyzer.booleanisSuppressLogs(Job<?, ?> job) Returns whether to suppress log output in theFlowExecutionAnalyzer.booleanisUnstableBuildNeutral(Job<?, ?> job) Whether to conclude an unstable build asChecksConclusion.NEUTRAL, else it would be concluded asChecksConclusion.FAILURE; the default is false.
-
Constructor Details
-
AbstractStatusChecksProperties
public AbstractStatusChecksProperties()
-
-
Method Details
-
isApplicable
Returns whether the implementation is applicable for thejob.- Parameters:
job- A jenkins job.- Returns:
- true if applicable
-
getName
Returns the name of the status check.- Parameters:
job- A jenkins job.- Returns:
- the name of the status check
-
isSkipped
Returns whether to skip publishing status checks.- Parameters:
job- A jenkins job.- Returns:
- true if skip
-
isUnstableBuildNeutral
Whether to conclude an unstable build asChecksConclusion.NEUTRAL, else it would be concluded asChecksConclusion.FAILURE; the default is false.- Parameters:
job- A jenkins job.- Returns:
- false to treat a unstable build as failure.
-
isSuppressLogs
Returns whether to suppress log output in theFlowExecutionAnalyzer.- Parameters:
job- A jenkins job.- Returns:
- true if logs should be suppressed from checks output.
-
isSkipProgressUpdates
Returns whether to suppress intermediate progress updates: the "queued" status published when the job is scheduled, the "in progress" status published after each SCM checkout, and the stage updates from theFlowExecutionAnalyzer. The final completed status is always published.- Parameters:
job- A jenkins job.- Returns:
- true if progress updates should be skipped.
-