Class 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 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 class org.jenkinsci.plugins.workflow.steps.Step
        Throws:
        Exception
      • 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
      • 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)