Package org.marvelution.jji.marker
Class DeploymentBuildMarker
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
org.marvelution.jji.marker.DeploymentBuildMarker
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep,Serializable,SimpleBuildStep
@Symbol("jiraDeploymentInfo")
public class DeploymentBuildMarker
extends Recorder
implements SimpleBuildStep, Serializable
Recorder/SimpleBuildStep that marks a build as a deployment to a specific environment.
In a pipeline the step is available under the jiraDeploymentInfo symbol, requiring only the
environmentType:
jiraDeploymentInfo environmentType: 'staging'
jiraDeploymentInfo environmentId: 'app-stg-eu-west-1', environmentName: 'Staging', environmentType: 'staging'
The environmentId and environmentName values support environment-variable expansion, so
dynamic values such as environmentType: env.TARGET_ENVIRONMENT work as expected.- Since:
- 3.8.0
- Author:
- Mark Rekveld
- See Also:
-
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 TypeMethodDescriptionbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) voidperform(Run<?, ?> build, EnvVars env, TaskListener listener) voidvoidsetEnvironmentId(String environmentId) voidsetEnvironmentName(String environmentName) Methods inherited from class hudson.tasks.Recorder
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, 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, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, requiresWorkspace
-
Constructor Details
-
DeploymentBuildMarker
-
-
Method Details
-
getEnvironmentId
-
setEnvironmentId
-
getEnvironmentName
-
setEnvironmentName
-
getEnvironmentType
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorServicein interfaceBuildStep
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
perform
public void perform(@NonNull Run<?, ?> build, @Nullable FilePath workspace, @NonNull EnvVars env, @NonNull Launcher launcher, @NonNull TaskListener listener) - Specified by:
performin interfaceSimpleBuildStep
-
perform
- Specified by:
performin interfaceSimpleBuildStep
-