public class DeploymentStepImpl extends org.jenkinsci.plugins.workflow.steps.Step implements DeploymentStep
Modifier and Type | Class and Description |
---|---|
static class |
DeploymentStepImpl.DescriptorImpl |
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
DeploymentStepImpl(String environmentName) |
Modifier and Type | Method and Description |
---|---|
DeploymentStepImpl.DescriptorImpl |
getDescriptor() |
BitbucketDeploymentEnvironment |
getEnvironment(Run<?,?> run,
TaskListener listener)
Generates a
BitbucketDeploymentEnvironment from the various components. |
String |
getEnvironmentKey()
Used to populate the
environmentKey field in the UI. |
String |
getEnvironmentName()
Used to populate the
environmentName field in the UI. |
String |
getEnvironmentType()
Used to populate the
environmentType field in the UI. |
String |
getEnvironmentUrl()
Used to populate the
environmentUrl 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) |
@DataBoundConstructor public DeploymentStepImpl(@CheckForNull String environmentName)
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception
start
in class org.jenkinsci.plugins.workflow.steps.Step
Exception
public DeploymentStepImpl.DescriptorImpl getDescriptor()
getDescriptor
in interface Describable<org.jenkinsci.plugins.workflow.steps.Step>
getDescriptor
in class org.jenkinsci.plugins.workflow.steps.Step
public BitbucketDeploymentEnvironment getEnvironment(Run<?,?> run, TaskListener listener)
DeploymentStep
BitbucketDeploymentEnvironment
from the various components.getEnvironment
in interface DeploymentStep
run
- the run that is performing the deploymentslistener
- the TaskListener
BitbucketDeploymentEnvironment
public String getEnvironmentKey()
DeploymentStep
environmentKey
field in the UI.getEnvironmentKey
in interface DeploymentStep
@DataBoundSetter public void setEnvironmentKey(@CheckForNull String environmentKey)
@CheckForNull public String getEnvironmentName()
DeploymentStep
environmentName
field in the UI.getEnvironmentName
in interface DeploymentStep
null
if not configured@CheckForNull public String getEnvironmentType()
DeploymentStep
environmentType
field in the UI.getEnvironmentType
in interface DeploymentStep
Enum.name()
or null
if not configured@DataBoundSetter public void setEnvironmentType(@CheckForNull String environmentType)
@CheckForNull public String getEnvironmentUrl()
DeploymentStep
environmentUrl
field in the UI.getEnvironmentUrl
in interface DeploymentStep
null
if not configured@DataBoundSetter public void setEnvironmentUrl(@CheckForNull String environmentUrl)
Copyright © 2016–2022. All rights reserved.