public class DeleteEnvironmentBuildStep extends CloudifyBuildStep
Modifier and Type | Class and Description |
---|---|
static class |
DeleteEnvironmentBuildStep.Descriptor |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
DeleteEnvironmentBuildStep() |
Modifier and Type | Method and Description |
---|---|
String |
getDeploymentId() |
boolean |
isDebugOutput() |
boolean |
isDeleteBlueprintIfLast() |
boolean |
isIgnoreFailure() |
protected void |
performImpl(hudson.model.Run<?,?> run,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.FilePath workspace,
hudson.EnvVars envVars,
co.cloudify.rest.client.CloudifyClient cloudifyClient)
This should be the main, "real" implementation of
BuildStepCompatibilityLayer.perform(AbstractBuild, Launcher, BuildListener) . |
void |
setDebugOutput(boolean debugOutput) |
void |
setDeleteBlueprintIfLast(boolean deleteBlueprintIfLast) |
void |
setDeploymentId(String deploymentId) |
void |
setIgnoreFailure(boolean ignoreFailure) |
String |
toString() |
getCredentialsId, getTenant, isCloudifyClientRequired, perform, setCredentialsId, setTenant
all, getDescriptor, getRequiredMonitorService, prebuild
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
@DataBoundConstructor public DeleteEnvironmentBuildStep()
public String getDeploymentId()
@DataBoundSetter public void setDeploymentId(String deploymentId)
public boolean isDeleteBlueprintIfLast()
@DataBoundSetter public void setDeleteBlueprintIfLast(boolean deleteBlueprintIfLast)
public boolean isIgnoreFailure()
@DataBoundSetter public void setIgnoreFailure(boolean ignoreFailure)
public boolean isDebugOutput()
@DataBoundSetter public void setDebugOutput(boolean debugOutput)
protected void performImpl(hudson.model.Run<?,?> run, hudson.Launcher launcher, hudson.model.TaskListener listener, hudson.FilePath workspace, hudson.EnvVars envVars, co.cloudify.rest.client.CloudifyClient cloudifyClient) throws Exception
CloudifyBuildStep
BuildStepCompatibilityLayer.perform(AbstractBuild, Launcher, BuildListener)
. Implementations
need not worry about using the listener, or handle top-level exceptions; this
is done by the wrapper.performImpl
in class CloudifyBuildStep
run
- build object, as given by Jenkinslauncher
- launcher object, as given by Jenkinslistener
- listener object, as given by Jenkinsworkspace
- path to Jenkins workspaceenvVars
- build's environment variablescloudifyClient
- a CloudifyClient
instance pointing at the
Cloudify Manager installation, populated during
configurationException
- May be anything; unified handling is done in
BuildStepCompatibilityLayer.perform(AbstractBuild, Launcher, BuildListener)
public String toString()
toString
in class CloudifyBuildStep
Copyright © 2016–2020. All rights reserved.