public class OpenShiftScaler extends hudson.tasks.Builder implements jenkins.tasks.SimpleBuildStep, Serializable
Builder.
When the user configures the project and enables this builder,
Descriptor.newInstance(StaplerRequest) is invoked
and a new OpenShiftScaler 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 |
OpenShiftScaler.DescriptorImpl
Descriptor for
OpenShiftScaler. |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
OpenShiftScaler(String apiURL,
String depCfg,
String namespace,
String replicaCount,
String authToken,
String verbose) |
| 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() |
OpenShiftScaler.DescriptorImpl |
getDescriptor() |
String |
getNamespace() |
String |
getReplicaCount() |
String |
getVerbose() |
protected void |
inspectBuildEnvAndOverrideFields(hudson.model.AbstractBuild build,
hudson.model.TaskListener listener,
boolean chatty) |
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, getProjectAction, getProjectActions, perform, prebuildpublic String getApiURL()
public String getDepCfg()
public String getNamespace()
public String getReplicaCount()
public String getAuthToken()
public String getVerbose()
protected 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)
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerpublic OpenShiftScaler.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2004-2015 Red Hat, Inc. All Rights Reserved.