public class ChefIdentityBuildWrapper
extends jenkins.tasks.SimpleBuildWrapper
SimpleBuildWrapper
.
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 SimpleBuildWrapper.setUp(Context, Run, FilePath, Launcher, TaskListener, EnvVars)
method will be invoked.
Modifier and Type | Class and Description |
---|---|
static class |
ChefIdentityBuildWrapper.DescriptorImpl
Descriptor for
ChefIdentityBuildWrapper . |
jenkins.tasks.SimpleBuildWrapper.Context, jenkins.tasks.SimpleBuildWrapper.Disposer
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 |
setUp(jenkins.tasks.SimpleBuildWrapper.Context context,
hudson.model.Run<?,?> build,
hudson.FilePath ws,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.EnvVars initialEnvironment) |
@DataBoundConstructor public ChefIdentityBuildWrapper(String jobIdentity)
public String getJobIdentity()
public void setUp(jenkins.tasks.SimpleBuildWrapper.Context context, hudson.model.Run<?,?> build, hudson.FilePath ws, hudson.Launcher launcher, hudson.model.TaskListener listener, hudson.EnvVars initialEnvironment) throws IOException, InterruptedException
setUp
in class jenkins.tasks.SimpleBuildWrapper
IOException
InterruptedException
public ChefIdentityBuildWrapper.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.BuildWrapper>
getDescriptor
in class hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>
Copyright © 2016–2019. All rights reserved.