In some cases, where a blackout period does not give you enough control, or you want more control over what runs on your environments, you can also restrict what is deployed.

In runtime, your task can check if there is a reservation for your deployment.

Use a deployment attribute on a task

  1. Go to the release flow editor and click a task.
  2. Click Add attribute.
  3. Select a Deployment type.
  4. Choose the application you want to deploy.
  5. Enter the application version.
  6. Choose the environment you want the application to be deployed on.

If you checked the Check environment availability on the task, the task will check if an environment reservation exists for the given environment and application at the moment of task execution. If a reservation does not exist, the task will fail.

Note: The release running a task with the previous checkbox must have set the automated user on release properties