Class 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: