public class OpenShiftDeployCanceller extends hudson.tasks.Recorder implements jenkins.tasks.SimpleBuildStep, Serializable
Builder.
When the user configures the project and enables this builder,
Descriptor.newInstance(StaplerRequest) is invoked
and a new OpenShiftDeployCanceller 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 |
OpenShiftDeployCanceller.DescriptorImpl
Descriptor for
OpenShiftDeployCanceller. |
hudson.tasks.Publisher.DescriptorExtensionListImpljenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
OpenShiftDeployCanceller(String apiURL,
String namespace,
String authToken,
String verbose,
String deployConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
coreLogic(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
String |
getApiURL()
We'll use this from the config.jelly.
|
String |
getAuthToken() |
String |
getDepCfg() |
OpenShiftDeployCanceller.DescriptorImpl |
getDescriptor() |
String |
getNamespace() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
String |
getVerbose() |
protected void |
inspectBuildEnvAndOverrideFields(hudson.model.AbstractBuild build,
hudson.model.TaskListener listener,
boolean chatty) |
boolean |
needsToRunAfterFinalized() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
getProjectAction, getProjectActions, perform, prebuildpublic String getApiURL()
public String getNamespace()
public String getAuthToken()
public String getVerbose()
public String getDepCfg()
public OpenShiftDeployCanceller.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Recorderpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildSteppublic boolean needsToRunAfterFinalized()
needsToRunAfterFinalized in class hudson.tasks.Publisherprotected void inspectBuildEnvAndOverrideFields(hudson.model.AbstractBuild build,
hudson.model.TaskListener listener,
boolean chatty)
protected boolean coreLogic(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
public void perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws InterruptedException,
IOException
perform in interface jenkins.tasks.SimpleBuildStepInterruptedExceptionIOExceptionpublic boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerInterruptedExceptionIOExceptionCopyright © 2004-2015 Red Hat, Inc. All Rights Reserved.