public class GitStatusWrapperBuilder
extends hudson.tasks.Builder
| Modifier and Type | Class and Description |
|---|---|
static class |
GitStatusWrapperBuilder.DescriptorImpl
Descriptor for
GitStatusWrapperBuilder. |
| Constructor and Description |
|---|
GitStatusWrapperBuilder(List<hudson.tasks.BuildStep> buildSteps) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccount() |
List<hudson.tasks.BuildStep> |
getBuildSteps() |
String |
getCredentialsId() |
String |
getDescription() |
GitStatusWrapperBuilder.DescriptorImpl |
getDescriptor()
Jenkins defines a method
Builder.getDescriptor(), which returns the corresponding
Descriptor object. |
String |
getFailureDescription() |
String |
getGitApiUrl() |
String |
getGitHubContext() |
String |
getRepo() |
String |
getScript() |
String |
getSha() |
String |
getSuccessDescription() |
String |
getTargetUrl() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
void |
setAccount(String account) |
void |
setCredentialsId(String credentialsId) |
void |
setDescription(String description) |
void |
setFailureDescription(String failureDescription) |
void |
setGitApiUrl(String gitApiUrl) |
void |
setGitHubContext(String gitHubContext) |
void |
setRepo(String repo) |
void |
setScript(String script) |
void |
setSha(String sha) |
void |
setSuccessDescription(String successDescription) |
void |
setTargetUrl(String targetUrl) |
@DataBoundConstructor public GitStatusWrapperBuilder(List<hudson.tasks.BuildStep> buildSteps)
public List<hudson.tasks.BuildStep> getBuildSteps()
public String getGitHubContext()
@DataBoundSetter public void setGitHubContext(String gitHubContext)
public String getAccount()
@DataBoundSetter public void setAccount(String account)
public String getRepo()
@DataBoundSetter public void setRepo(String repo)
public String getSha()
@DataBoundSetter public void setSha(String sha)
public String getScript()
public void setScript(String script)
public String getDescription()
@DataBoundSetter public void setDescription(String description)
public String getTargetUrl()
@DataBoundSetter public void setTargetUrl(String targetUrl)
@DataBoundSetter public void setGitApiUrl(String gitApiUrl)
@DataBoundSetter public void setCredentialsId(String credentialsId)
public String getGitApiUrl()
public String getCredentialsId()
public String getSuccessDescription()
@DataBoundSetter public void setSuccessDescription(String successDescription)
public String getFailureDescription()
@DataBoundSetter public void setFailureDescription(String failureDescription)
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerInterruptedExceptionIOExceptionpublic final GitStatusWrapperBuilder.DescriptorImpl getDescriptor()
Builder.getDescriptor(), which returns the corresponding
Descriptor object.
Since we know that it's actually GitStatusWrapperBuilder.DescriptorImpl, override the method and give a better
return type, so that we can access GitStatusWrapperBuilder.DescriptorImpl methods more easily.
This is not necessary, but just a coding style preference.getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2016–2019. All rights reserved.