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 class
DeploymentStepImpl.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.DescriptorImpl
getDescriptor()
BitbucketDeploymentEnvironment
getEnvironment(Run<?,?> run, TaskListener listener)
Generates aBitbucketDeploymentEnvironment
from the various components.String
getEnvironmentKey()
Used to populate theenvironmentKey
field in the UI.String
getEnvironmentName()
Used to populate theenvironmentName
field in the UI.String
getEnvironmentType()
Used to populate theenvironmentType
field in the UI.String
getEnvironmentUrl()
Used to populate theenvironmentUrl
field in the UI.void
setEnvironmentKey(String environmentKey)
void
setEnvironmentType(String environmentType)
void
setEnvironmentUrl(String environmentUrl)
org.jenkinsci.plugins.workflow.steps.StepExecution
start(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:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
- Throws:
Exception
-
getDescriptor
public DeploymentStepImpl.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<org.jenkinsci.plugins.workflow.steps.Step>
- Overrides:
getDescriptor
in classorg.jenkinsci.plugins.workflow.steps.Step
-
getEnvironment
public BitbucketDeploymentEnvironment getEnvironment(Run<?,?> run, TaskListener listener)
Description copied from interface:DeploymentStep
Generates aBitbucketDeploymentEnvironment
from the various components.- Specified by:
getEnvironment
in interfaceDeploymentStep
- Parameters:
run
- the run that is performing the deploymentslistener
- theTaskListener
- Returns:
- the configured
BitbucketDeploymentEnvironment
-
getEnvironmentKey
public String getEnvironmentKey()
Description copied from interface:DeploymentStep
Used to populate theenvironmentKey
field in the UI.- Specified by:
getEnvironmentKey
in 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:DeploymentStep
Used to populate theenvironmentName
field in the UI.- Specified by:
getEnvironmentName
in interfaceDeploymentStep
- Returns:
- the configured environment name or
null
if not configured
-
getEnvironmentType
@CheckForNull public String getEnvironmentType()
Description copied from interface:DeploymentStep
Used to populate theenvironmentType
field in the UI.- Specified by:
getEnvironmentType
in interfaceDeploymentStep
- Returns:
- the configured
Enum.name()
ornull
if not configured
-
setEnvironmentType
@DataBoundSetter public void setEnvironmentType(@CheckForNull String environmentType)
-
getEnvironmentUrl
@CheckForNull public String getEnvironmentUrl()
Description copied from interface:DeploymentStep
Used to populate theenvironmentUrl
field in the UI.- Specified by:
getEnvironmentUrl
in interfaceDeploymentStep
- Returns:
- the configured environment url or
null
if not configured
-
setEnvironmentUrl
@DataBoundSetter public void setEnvironmentUrl(@CheckForNull String environmentUrl)
-
-