public class DeploymentBuilder
extends hudson.tasks.Builder
Builder.
When the user configures the project and enables this builder, DescriptorImpl#newInstance(StaplerRequest) is invoked and a new HelloWorldBuilder is created. The created instance is persisted to the project configuration XML by using XStream, so this allows you to use instance fields (like @link #name) 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 |
DeploymentBuilder.DescriptorImpl
Descriptor for .
|
| Constructor and Description |
|---|
DeploymentBuilder(String url,
String userId,
String password,
boolean enableZipFile,
boolean enableAutoDeploy,
EnableTestCaseBlock enableTestCase) |
| Modifier and Type | Method and Description |
|---|---|
DeploymentBuilder.DescriptorImpl |
getDescriptor() |
String |
getPassword() |
List<TestCaseBlock> |
getTestcaseblock() |
String |
getUrl() |
String |
getUserId()
We'll use this from the config.jelly.
|
boolean |
isEnableAutoDeploy() |
boolean |
isEnableTestCase() |
boolean |
isEnableZipFile() |
boolean |
perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
@DataBoundConstructor public DeploymentBuilder(String url, String userId, String password, boolean enableZipFile, boolean enableAutoDeploy, EnableTestCaseBlock enableTestCase)
public String getUserId()
public String getPassword()
public String getUrl()
public List<TestCaseBlock> getTestcaseblock()
public boolean isEnableZipFile()
public boolean isEnableAutoDeploy()
public boolean isEnableTestCase()
public boolean perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerpublic DeploymentBuilder.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2004-2015. All Rights Reserved.