We have multiple developers working concurrently and make use of a development server to review the state of our application.
We push to the "dev" branch to trigger a pipeline to deploy all approved changes to this server. This deploy triggers a new build of the current state of the app.
When we are developing rapidly there may be several deploys triggered concurrently which bogs down the deployments with redundant building.
How can we have the latest/most recent deploy automatically cancel previous deployments in progress?
Thank you.