I have increased the number of agents to allow me to have multiple builds at the same time running.
However we’re sometimes running into an issue where two (or more) PRs are merged very closely together (< 1 minute) creating two new commits to the main branch. Both of these are then built in parallel and sometimes the first merge commit finishes building second (race condition), thus pushing an older build to our docker repo and then deploying the older build.
I have spent some time thinking about the requirements, and decided that I would like to somehow define this behavior in the yaml. I am open to syntax suggestions …