public class HelloWorldBuilder
extends hudson.tasks.Builder
Builder.
When the user configures the project and enables this builder,
Descriptor.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 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 |
HelloWorldBuilder.DescriptorImpl
Descriptor for
HelloWorldBuilder. |
| Constructor and Description |
|---|
HelloWorldBuilder(String name) |
| Modifier and Type | Method and Description |
|---|---|
HelloWorldBuilder.DescriptorImpl |
getDescriptor() |
String |
getName()
We'll use this from the config.jelly.
|
boolean |
perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
@DataBoundConstructor public HelloWorldBuilder(String name)
public String getName()
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 HelloWorldBuilder.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2004-2015. All Rights Reserved.