public class ECXCDMBuilder
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
Builder.
When the user configures the project and enables this builder,
Descriptor.newInstance(StaplerRequest) is invoked
and a new ECXCDMBuilder is created. The created
instance is persisted to the project configuration XML by using
XStream, so this allows you to use instance fields (like name)
to remember the configuration.
When a build is performed, the perform(hudson.model.Run<?, ?>, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener) method will be invoked.
| Modifier and Type | Class and Description |
|---|---|
static class |
ECXCDMBuilder.DescriptorImpl
Descriptor for
ECXCDMBuilder. |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
ECXCDMBuilder(String name,
String password,
String url,
String job,
boolean production,
int maxWaitTime) |
| Modifier and Type | Method and Description |
|---|---|
ECXCDMBuilder.DescriptorImpl |
getDescriptor() |
String |
getJob() |
int |
getMaxWaitTime() |
String |
getName()
We'll use this from the config.jelly.
|
String |
getPassword() |
boolean |
getProduction() |
String |
getUrl() |
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildpublic String getName()
public String getPassword()
public String getUrl()
public String getJob()
public int getMaxWaitTime()
public boolean getProduction()
public void perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws hudson.AbortException
perform in interface jenkins.tasks.SimpleBuildStephudson.AbortExceptionpublic ECXCDMBuilder.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2016. All rights reserved.