Class DeploymentNotifier
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
com.atlassian.bitbucket.jenkins.internal.deployments.DeploymentNotifier
- All Implemented Interfaces:
DeploymentStep,ExtensionPoint,Describable<Publisher>,BuildStep,SimpleBuildStep
Step for configuring deployment notification in freestyle jobs.
- Since:
- 3.1.0
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEnvironment(Run<?, ?> run, TaskListener listener) Generates aBitbucketDeploymentEnvironmentfrom the various components.Used to populate theenvironmentKeyfield in the UIUsed to populate theenvironmentNamefield in the UI.Used to populate theenvironmentTypefield in the UIUsed to populate theenvironmentUrlfield in the UIvoidperform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) voidsetEnvironmentKey(String environmentKey) voidsetEnvironmentType(String environmentType) voidsetEnvironmentUrl(String environmentUrl) Methods inherited from class hudson.tasks.Notifier
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
DeploymentNotifier
-
-
Method Details
-
descriptor
-
getEnvironmentKey
Used to populate theenvironmentKeyfield in the UI- Specified by:
getEnvironmentKeyin interfaceDeploymentStep- Returns:
- the configured or generated environment key
-
setEnvironmentKey
-
getEnvironmentName
Description copied from interface:DeploymentStepUsed to populate theenvironmentNamefield in the UI.- Specified by:
getEnvironmentNamein interfaceDeploymentStep- Returns:
- the configured environment name or
nullif not configured
-
getEnvironmentType
Used to populate theenvironmentTypefield in the UI- Specified by:
getEnvironmentTypein interfaceDeploymentStep- Returns:
- the configured
Enum.name()ornullif not configured
-
setEnvironmentType
-
getEnvironmentUrl
Used to populate theenvironmentUrlfield in the UI- Specified by:
getEnvironmentUrlin interfaceDeploymentStep- Returns:
- the configured environment url or
nullif not configured
-
setEnvironmentUrl
-
perform
public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-
getEnvironment
Description copied from interface:DeploymentStepGenerates aBitbucketDeploymentEnvironmentfrom the various components.- Specified by:
getEnvironmentin interfaceDeploymentStep- Parameters:
run- the run that is performing the deploymentslistener- theTaskListener- Returns:
- the configured
BitbucketDeploymentEnvironment
-