Class ConditionalResult
java.lang.Object
hudson.model.AbstractDescribableImpl<ConditionalResult>
org.jenkinsci.plugins.github.extension.status.misc.ConditionalResult
- All Implemented Interfaces:
ExtensionPoint
,Describable<ConditionalResult>
- Direct Known Subclasses:
AnyBuildResult
,BetterThanOrEqualBuildResult
public abstract class ConditionalResult
extends AbstractDescribableImpl<ConditionalResult>
implements ExtensionPoint
This extension point allows to define when and what to send as state and message.
It will be used as part of
ConditionalStatusResultSource
.- Since:
- 1.19.0
- Author:
- lanwen (Merkushev Kirill)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Should be extended to and marked asExtension
to be in listNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetState()
abstract boolean
If matches, will be used to set statevoid
setMessage
(String message) void
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
ConditionalResult
public ConditionalResult()
-
-
Method Details
-
setState
-
setMessage
-
getState
- Returns:
- State to set. Will be converted to
GHCommitState
-
getMessage
- Returns:
- Message to write. Can contain env vars, will be expanded.
-
matches
If matches, will be used to set state- Parameters:
run
- to check against- Returns:
- true if matches
-