Class ManuallyEnteredCommitContextSource
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<GitHubStatusContextSource>
-
- org.jenkinsci.plugins.github.extension.status.GitHubStatusContextSource
-
- org.jenkinsci.plugins.github.status.sources.ManuallyEnteredCommitContextSource
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GitHubStatusContextSource>
public class ManuallyEnteredCommitContextSource extends GitHubStatusContextSource
Allows to manually enter context- Since:
- 1.19.0
- Author:
- lanwen (Merkushev Kirill)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ManuallyEnteredCommitContextSource.ManuallyEnteredCommitContextSourceDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ManuallyEnteredCommitContextSource(String context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
context(Run<?,?> run, TaskListener listener)
Just returns what user entered.String
getContext()
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
ManuallyEnteredCommitContextSource
@DataBoundConstructor public ManuallyEnteredCommitContextSource(String context)
-
-
Method Detail
-
getContext
public String getContext()
-
context
public String context(@NonNull Run<?,?> run, @NonNull TaskListener listener)
Just returns what user entered. Expands env vars and token macro- Specified by:
context
in classGitHubStatusContextSource
- Parameters:
run
- actual runlistener
- build listener- Returns:
- simple short string to represent context of this state
-
-