Class DeploymentStepImpl
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
com.atlassian.bitbucket.jenkins.internal.deployments.DeploymentStepImpl
- All Implemented Interfaces:
DeploymentStep,ExtensionPoint,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class DeploymentStepImpl
extends org.jenkinsci.plugins.workflow.steps.Step
implements DeploymentStep
Step for configuring deployment notifications.
- Since:
- 3.1.0
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEnvironment(Run<?, ?> run, TaskListener listener) Generates aBitbucketDeploymentEnvironmentfrom the various components.Used to populate theenvironmentKeyfield in the UI.Used to populate theenvironmentNamefield in the UI.Used to populate theenvironmentTypefield in the UI.Used to populate theenvironmentUrlfield in the UI.voidsetEnvironmentKey(String environmentKey) voidsetEnvironmentType(String environmentType) voidsetEnvironmentUrl(String environmentUrl) org.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
Constructor Details
-
DeploymentStepImpl
-
-
Method Details
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception - Specified by:
startin classorg.jenkinsci.plugins.workflow.steps.Step- Throws:
Exception
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<org.jenkinsci.plugins.workflow.steps.Step>- Overrides:
getDescriptorin classorg.jenkinsci.plugins.workflow.steps.Step
-
getEnvironment
Description copied from interface:DeploymentStepGenerates aBitbucketDeploymentEnvironmentfrom the various components.- Specified by:
getEnvironmentin interfaceDeploymentStep- Parameters:
run- the run that is performing the deploymentslistener- theTaskListener- Returns:
- the configured
BitbucketDeploymentEnvironment
-
getEnvironmentKey
Description copied from interface:DeploymentStepUsed to populate theenvironmentKeyfield in the UI.- Specified by:
getEnvironmentKeyin interfaceDeploymentStep- Returns:
- the configured or generated environment key
-
setEnvironmentKey
-
getEnvironmentName
Description copied from interface:DeploymentStepUsed to populate theenvironmentNamefield in the UI.- Specified by:
getEnvironmentNamein interfaceDeploymentStep- Returns:
- the configured environment name or
nullif not configured
-
getEnvironmentType
Description copied from interface:DeploymentStepUsed to populate theenvironmentTypefield in the UI.- Specified by:
getEnvironmentTypein interfaceDeploymentStep- Returns:
- the configured
Enum.name()ornullif not configured
-
setEnvironmentType
-
getEnvironmentUrl
Description copied from interface:DeploymentStepUsed to populate theenvironmentUrlfield in the UI.- Specified by:
getEnvironmentUrlin interfaceDeploymentStep- Returns:
- the configured environment url or
nullif not configured
-
setEnvironmentUrl
-