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>
Allows to enter sha manually
- Since:
- 1.19.0
- Author:
- lanwen (Merkushev Kirill)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
ManuallyEnteredShaSource
-
-
Method Details
-
getSha
-
get
public String get(@NonNull Run<?, ?> run, @NonNull TaskListener listener) throws IOException, InterruptedExceptionExpands 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
-