Class BetterThanOrEqualBuildResult
java.lang.Object
hudson.model.AbstractDescribableImpl<ConditionalResult>
org.jenkinsci.plugins.github.extension.status.misc.ConditionalResult
org.jenkinsci.plugins.github.status.sources.misc.BetterThanOrEqualBuildResult
- All Implemented Interfaces:
ExtensionPoint
,Describable<ConditionalResult>
if run result better than or equal to selected
- Since:
- 1.19.0
- Author:
- lanwen (Merkushev Kirill)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class org.jenkinsci.plugins.github.extension.status.misc.ConditionalResult
ConditionalResult.ConditionalResultDescriptor
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BetterThanOrEqualBuildResult
betterThanOrEqualTo
(Result result, org.kohsuke.github.GHCommitState state, String msg) Convenient way to reuse logic of checking for the build statusboolean
If matches, will be used to set statevoid
Methods inherited from class org.jenkinsci.plugins.github.extension.status.misc.ConditionalResult
getMessage, getState, setMessage, setState
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
BetterThanOrEqualBuildResult
@DataBoundConstructor public BetterThanOrEqualBuildResult()
-
-
Method Details
-
setResult
-
getResult
-
matches
Description copied from class:ConditionalResult
If matches, will be used to set state- Specified by:
matches
in classConditionalResult
- Parameters:
run
- to check against- Returns:
- matches if run result better than or equal to selected
-
betterThanOrEqualTo
public static BetterThanOrEqualBuildResult betterThanOrEqualTo(Result result, org.kohsuke.github.GHCommitState state, String msg) Convenient way to reuse logic of checking for the build status- Parameters:
result
- to check againststate
- state to setmsg
- message to set. Can contain env vars- Returns:
- new instance of this conditional result
-