public class XLRVarSetterBuilder
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 XLRVarSetterBuilder 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(hudson.model.Run<?, ?>, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener) method will be invoked.
| Modifier and Type | Class and Description |
|---|---|
static class |
XLRVarSetterBuilder.DescriptorImpl
Descriptor for
XLRVarSetterBuilder. |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
XLRVarSetterBuilder(String XLR_releaseId,
String XLR_varName,
String JKS_varName,
boolean debug) |
| Modifier and Type | Method and Description |
|---|---|
XLRVarSetterBuilder.DescriptorImpl |
getDescriptor() |
String |
getJKS_varName() |
String |
getXLR_releaseId()
We'll use this from the
config.jelly. |
String |
getXLR_varName() |
boolean |
isDebug() |
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildpublic String getXLR_releaseId()
config.jelly.public String getXLR_varName()
public String getJKS_varName()
public boolean isDebug()
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 XLRVarSetterBuilder.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2016–2017. All rights reserved.