public class DeploymentNotifier extends Notifier implements SimpleBuildStep, DeploymentStep
Modifier and Type | Class and Description |
---|---|
static class |
DeploymentNotifier.DescriptorImpl |
Publisher.DescriptorExtensionListImpl
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
BuildStep.PublisherList
ExtensionPoint.LegacyInstancesAreScopedToHudson
BUILDERS, PUBLISHERS
Constructor and Description |
---|
DeploymentNotifier(String environmentName) |
Modifier and Type | Method and Description |
---|---|
DeploymentNotifier.DescriptorImpl |
descriptor() |
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 |
perform(Run<?,?> run,
FilePath workspace,
Launcher launcher,
TaskListener listener) |
void |
setEnvironmentKey(String environmentKey) |
void |
setEnvironmentType(String environmentType) |
void |
setEnvironmentUrl(String environmentUrl) |
getDescriptor
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectAction, getProjectActions, perform, perform, prebuild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
perform, perform, requiresWorkspace
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
@DataBoundConstructor public DeploymentNotifier(@CheckForNull String environmentName)
public DeploymentNotifier.DescriptorImpl descriptor()
public String getEnvironmentKey()
environmentKey
field in the UIgetEnvironmentKey
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()
environmentType
field in the UIgetEnvironmentType
in interface DeploymentStep
Enum.name()
or null
if not configured@DataBoundSetter public void setEnvironmentType(@CheckForNull String environmentType)
@CheckForNull public String getEnvironmentUrl()
environmentUrl
field in the UIgetEnvironmentUrl
in interface DeploymentStep
null
if not configured@DataBoundSetter public void setEnvironmentUrl(@CheckForNull String environmentUrl)
public void perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
perform
in interface SimpleBuildStep
InterruptedException
IOException
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
Copyright © 2016–2022. All rights reserved.