Class ConditionalStatusResultSource
java.lang.Object
hudson.model.AbstractDescribableImpl<GitHubStatusResultSource>
org.jenkinsci.plugins.github.extension.status.GitHubStatusResultSource
org.jenkinsci.plugins.github.status.sources.ConditionalStatusResultSource
- All Implemented Interfaces:
ExtensionPoint
,Describable<GitHubStatusResultSource>
Allows to define message and state for commit for different run results
- Author:
- lanwen (Merkushev Kirill)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class org.jenkinsci.plugins.github.extension.status.GitHubStatusResultSource
GitHubStatusResultSource.StatusResult
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget
(Run<?, ?> run, TaskListener listener) First matching result win.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
ConditionalStatusResultSource
-
-
Method Details
-
getResults
-
get
public GitHubStatusResultSource.StatusResult get(@NonNull Run<?, ?> run, @NonNull TaskListener listener) throws IOException, InterruptedExceptionFirst matching result win. Or will be used pending state. Messages are expanded with token macro and env variables- Specified by:
get
in classGitHubStatusResultSource
- Parameters:
run
- actual runlistener
- run listener- Returns:
- first matched result or pending state with warn msg
- Throws:
IOException
InterruptedException
-