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 Classes Modifier and Type Class Description static classDeploymentStepImpl.DescriptorImpl-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description DeploymentStepImpl(String environmentName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentStepImpl.DescriptorImplgetDescriptor()BitbucketDeploymentEnvironmentgetEnvironment(Run<?,?> run, TaskListener listener)Generates aBitbucketDeploymentEnvironmentfrom the various components.StringgetEnvironmentKey()Used to populate theenvironmentKeyfield in the UI.StringgetEnvironmentName()Used to populate theenvironmentNamefield in the UI.StringgetEnvironmentType()Used to populate theenvironmentTypefield in the UI.StringgetEnvironmentUrl()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 Detail
-
DeploymentStepImpl
@DataBoundConstructor public DeploymentStepImpl(@CheckForNull String environmentName)
-
-
Method Detail
-
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
public DeploymentStepImpl.DescriptorImpl getDescriptor()
- Specified by:
getDescriptorin interfaceDescribable<org.jenkinsci.plugins.workflow.steps.Step>- Overrides:
getDescriptorin classorg.jenkinsci.plugins.workflow.steps.Step
-
getEnvironment
public BitbucketDeploymentEnvironment getEnvironment(Run<?,?> run, TaskListener listener)
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
public String getEnvironmentKey()
Description copied from interface:DeploymentStepUsed to populate theenvironmentKeyfield in the UI.- Specified by:
getEnvironmentKeyin interfaceDeploymentStep- Returns:
- the configured or generated environment key
-
setEnvironmentKey
@DataBoundSetter public void setEnvironmentKey(@CheckForNull String environmentKey)
-
getEnvironmentName
@CheckForNull public String 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
@CheckForNull public String 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
@DataBoundSetter public void setEnvironmentType(@CheckForNull String environmentType)
-
getEnvironmentUrl
@CheckForNull public String 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
@DataBoundSetter public void setEnvironmentUrl(@CheckForNull String environmentUrl)
-
-