Class ManuallyEnteredBackrefSource
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<GitHubStatusBackrefSource>
-
- org.jenkinsci.plugins.github.extension.status.GitHubStatusBackrefSource
-
- org.jenkinsci.plugins.github.status.sources.ManuallyEnteredBackrefSource
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GitHubStatusBackrefSource>
public class ManuallyEnteredBackrefSource extends GitHubStatusBackrefSource
Allows to manually enter backref, with env/token expansion.- Since:
- 1.21.2
- Author:
- pupssman (Kalinin Ivan)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ManuallyEnteredBackrefSource.ManuallyEnteredBackrefSourceDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ManuallyEnteredBackrefSource(String backref)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
get(Run<?,?> run, TaskListener listener)
Just returns what user entered.String
getBackref()
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
ManuallyEnteredBackrefSource
@DataBoundConstructor public ManuallyEnteredBackrefSource(String backref)
-
-
Method Detail
-
getBackref
public String getBackref()
-
get
public String get(Run<?,?> run, TaskListener listener)
Just returns what user entered. Expands env vars and token macro- Specified by:
get
in classGitHubStatusBackrefSource
- Parameters:
run
- actual runlistener
- build listener- Returns:
- URL that points to the status source, i.e. test result page
-
-