In azure devops and yaml I can set a schedule trigger like this:
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build
branches:
include:
- main
And it will now trigger every night if main have new code since the last successful build.
But my problem is that I have builds that are long running with multiple stages (acc, int, prod) that we manually approve on different days.
So how do I prevent it from queueing new builds (with the same code) if it already have a build with x commit? Even it it's ongoing or in failed state. I can't seem to find anything in the documentation.