Class ManuallyEnteredShaSource
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<GitHubCommitShaSource>
-
- org.jenkinsci.plugins.github.extension.status.GitHubCommitShaSource
-
- org.jenkinsci.plugins.github.status.sources.ManuallyEnteredShaSource
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GitHubCommitShaSource>
public class ManuallyEnteredShaSource extends GitHubCommitShaSource
Allows to enter sha manually- Since:
- 1.19.0
- Author:
- lanwen (Merkushev Kirill)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ManuallyEnteredShaSource.ManuallyEnteredShaSourceDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ManuallyEnteredShaSource(String sha)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
get(Run<?,?> run, TaskListener listener)
Expands env vars and token macro in entered shaString
getSha()
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
ManuallyEnteredShaSource
@DataBoundConstructor public ManuallyEnteredShaSource(String sha)
-
-
Method Detail
-
getSha
public String getSha()
-
get
public String get(@NonNull Run<?,?> run, @NonNull TaskListener listener) throws IOException, InterruptedException
Expands env vars and token macro in entered sha- Specified by:
get
in classGitHubCommitShaSource
- Parameters:
run
- enclosing runlistener
- listener of the run. Can be used to fetch env vars- Returns:
- plain sha to set state
- Throws:
IOException
InterruptedException
-
-