public class CodeStreamBuilder extends hudson.tasks.Builder implements Serializable
Builder.
When the user configures the project and enables this builder,
Descriptor.newInstance(StaplerRequest) is invoked
and a new CodeStreamBuilder is created. The created
instance is persisted to the project configuration XML by using
XStream, so this allows you to use instance fields (like )
to remember the configuration.
When a build is performed, the perform(AbstractBuild, Launcher, BuildListener)
method will be invoked.| Modifier and Type | Class and Description |
|---|---|
static class |
CodeStreamBuilder.CodeStreamEnvAction |
static class |
CodeStreamBuilder.DescriptorImpl
Descriptor for
CodeStreamBuilder. |
| Constructor and Description |
|---|
CodeStreamBuilder(String serverUrl,
String userName,
String password,
String tenant,
String pipelineName,
boolean waitExec,
List<PipelineParam> pipelineParams) |
| Modifier and Type | Method and Description |
|---|---|
CodeStreamBuilder.DescriptorImpl |
getDescriptor()
We'll use this from the config.jelly.
|
String |
getPassword() |
String |
getPipelineName() |
List<PipelineParam> |
getPipelineParams() |
String |
getServerUrl() |
String |
getTenant() |
String |
getUserName() |
boolean |
isWaitExec() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
public String getServerUrl()
public String getUserName()
public String getPassword()
public String getTenant()
public String getPipelineName()
public List<PipelineParam> getPipelineParams()
public boolean isWaitExec()
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 CodeStreamBuilder.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2004-2015. All Rights Reserved.