public class HyperBuilder
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 HyperBuilder 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 |
HyperBuilder.DescriptorImpl
Descriptor for
HyperBuilder. |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
HyperBuilder(String image,
String commands) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommands() |
HyperBuilder.DescriptorImpl |
getDescriptor() |
String |
getImage()
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 getImage()
public String getCommands()
public void perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
perform in interface jenkins.tasks.SimpleBuildStepIOExceptionInterruptedExceptionpublic HyperBuilder.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2016. All rights reserved.