public abstract class IntegrationBuildStep extends CloudifyBuildStep
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Modifier and Type | Field and Description |
---|---|
protected String |
envDataLocation |
protected Predicate<String> |
inputPrintPredicate
Predicate to determine whether an input should be printed out, or be masked.
|
protected Map<String,Object> |
operationInputs |
Constructor and Description |
---|
IntegrationBuildStep() |
Modifier and Type | Method and Description |
---|---|
protected String |
generateBlueprintId() |
protected abstract BlueprintUploadSpec |
getBlueprintUploadSpec() |
String |
getDeploymentId() |
String |
getEnvDataLocation() |
protected abstract String |
getIntegrationName() |
protected abstract String |
getIntegrationVersion() |
protected abstract Set<String> |
getRequiredPluginNames() |
boolean |
isDebugOutput() |
boolean |
isEchoEnvData() |
boolean |
isEchoInputs() |
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) . |
protected void |
putIfNonNullValue(Map<String,Object> map,
String key,
Object value) |
void |
setDebugOutput(boolean debugOutput) |
void |
setDeploymentId(String deploymentId) |
void |
setEchoEnvData(boolean echoOutputs) |
void |
setEchoInputs(boolean echoInputs) |
void |
setEnvDataLocation(String outputsLocation) |
String |
toString() |
getCredentialsId, getTenant, isCloudifyClientRequired, perform, setCredentialsId, setTenant
all, getDescriptor, getRequiredMonitorService, prebuild
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
protected String envDataLocation
public boolean isEchoInputs()
@DataBoundSetter public void setEchoInputs(boolean echoInputs)
public boolean isEchoEnvData()
@DataBoundSetter public void setEchoEnvData(boolean echoOutputs)
public boolean isDebugOutput()
@DataBoundSetter public void setDebugOutput(boolean debugOutput)
public String getEnvDataLocation()
@DataBoundSetter public void setEnvDataLocation(String outputsLocation)
public String getDeploymentId()
@DataBoundSetter public void setDeploymentId(String deploymentId)
protected abstract BlueprintUploadSpec getBlueprintUploadSpec() throws Exception
Exception
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)
protected void putIfNonNullValue(Map<String,Object> map, String key, Object value)
protected abstract String getIntegrationName()
protected abstract String getIntegrationVersion()
protected String generateBlueprintId()
public String toString()
toString
in class CloudifyBuildStep
Copyright © 2016–2020. All rights reserved.