public class WinDocksBuilder
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 WinDocksBuilder is created. The created
instance is persisted to the project configuration XML by using
XStream, so this allows you to use instance fields (like image)
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 |
WinDocksBuilder.DescriptorImpl
Descriptor for
WinDocksBuilder. |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
WinDocksBuilder(String ipaddress,
String image) |
| Modifier and Type | Method and Description |
|---|---|
WinDocksBuilder.DescriptorImpl |
getDescriptor()
Overridden for better type safety.
|
String |
getImage() |
String |
getIpaddress()
We'll use this from the config.jelly.
|
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildpublic String getIpaddress()
public String getImage()
public void perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws IOException
perform in interface jenkins.tasks.SimpleBuildStepIOExceptionpublic WinDocksBuilder.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2016. All rights reserved.