Concurrently deploying multiple things to an environment causes problems. However, it can be hard to keep track of what is about to deploy, especially when you have several pipelines and complex workflows.
This is where the Deployment concurrency control comes in.
By tracking your deployments using Bitbucket Deployments, Pipelines will automatically check if there is a deployment in progress before starting a new one to the same environment. If there is already a deployment in progress, later pipelines deploying to the same environment will be paused.
Once an in-progress deployment is complete you can:
- Rerun the whole pipeline from the beginning
- Resume the paused pipeline at the step it became paused