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
  • Constructor Details

    • DeploymentStepImpl

      @DataBoundConstructor public DeploymentStepImpl(@CheckForNull String environmentName)
  • Method Details

    • start

      public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception
      Specified by:
      start in class org.jenkinsci.plugins.workflow.steps.Step
      Throws:
      Exception
    • getDescriptor

      public DeploymentStepImpl.DescriptorImpl getDescriptor()
      Specified by:
      getDescriptor in interface Describable<org.jenkinsci.plugins.workflow.steps.Step>
      Overrides:
      getDescriptor in class org.jenkinsci.plugins.workflow.steps.Step
    • getEnvironment

      public BitbucketDeploymentEnvironment getEnvironment(Run<?,?> run, TaskListener listener)
      Description copied from interface: DeploymentStep
      Generates a BitbucketDeploymentEnvironment from the various components.
      Specified by:
      getEnvironment in interface DeploymentStep
      Parameters:
      run - the run that is performing the deployments
      listener - the TaskListener
      Returns:
      the configured BitbucketDeploymentEnvironment
    • getEnvironmentKey

      public String getEnvironmentKey()
      Description copied from interface: DeploymentStep
      Used to populate the environmentKey field in the UI.
      Specified by:
      getEnvironmentKey in interface DeploymentStep
      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 the environmentName field in the UI.
      Specified by:
      getEnvironmentName in interface DeploymentStep
      Returns:
      the configured environment name or null if not configured
    • getEnvironmentType

      @CheckForNull public String getEnvironmentType()
      Description copied from interface: DeploymentStep
      Used to populate the environmentType field in the UI.
      Specified by:
      getEnvironmentType in interface DeploymentStep
      Returns:
      the configured Enum.name() or null if not configured
    • setEnvironmentType

      @DataBoundSetter public void setEnvironmentType(@CheckForNull String environmentType)
    • getEnvironmentUrl

      @CheckForNull public String getEnvironmentUrl()
      Description copied from interface: DeploymentStep
      Used to populate the environmentUrl field in the UI.
      Specified by:
      getEnvironmentUrl in interface DeploymentStep
      Returns:
      the configured environment url or null if not configured
    • setEnvironmentUrl

      @DataBoundSetter public void setEnvironmentUrl(@CheckForNull String environmentUrl)