public class ChefIdentityBuildWrapper
extends hudson.tasks.BuildWrapper
BuildWrapper.
When the user configures the project and enables this builder,
Descriptor.newInstance(StaplerRequest) is invoked
and a new ChefIdentityBuildWrapper is created. The created
instance is persisted to the project configuration XML by using
XStream, so this allows you to use instance fields (like jobIdentity)
to remember the configuration.
When a build is performed, the preCheckout(AbstractBuild, Launcher, BuildListener)
method will be invoked.
| Modifier and Type | Class and Description |
|---|---|
static class |
ChefIdentityBuildWrapper.DescriptorImpl
Descriptor for
ChefIdentityBuildWrapper. |
| Constructor and Description |
|---|
ChefIdentityBuildWrapper(String jobIdentity) |
| Modifier and Type | Method and Description |
|---|---|
ChefIdentityBuildWrapper.DescriptorImpl |
getDescriptor() |
String |
getJobIdentity()
We'll use this from the config.jelly.
|
void |
preCheckout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
hudson.tasks.BuildWrapper.Environment |
setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
@DataBoundConstructor public ChefIdentityBuildWrapper(String jobIdentity)
public String getJobIdentity()
public void preCheckout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
preCheckout in class hudson.tasks.BuildWrapperIOExceptionInterruptedExceptionpublic hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
setUp in class hudson.tasks.BuildWrapperIOExceptionInterruptedExceptionpublic ChefIdentityBuildWrapper.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.BuildWrapper>getDescriptor in class hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>Copyright © 2004-2014. All Rights Reserved.