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
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
Returns the name of the status check.abstract boolean
isApplicable
(Job<?, ?> job) Returns whether the implementation is applicable for thejob
.abstract boolean
Returns whether to skip publishing status checks.boolean
isSkipProgressUpdates
(Job<?, ?> job) Returns whether to suppress progress updates from theFlowExecutionAnalyzer
.boolean
isSuppressLogs
(Job<?, ?> job) Returns whether to suppress log output in theFlowExecutionAnalyzer
.boolean
isUnstableBuildNeutral
(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 progress updates from theFlowExecutionAnalyzer
. Queued, Checkout and Completed will still run but not 'onNewHead'- Parameters:
job
- A jenkins job.- Returns:
- true if progress updates should be skipped.
-