Is there a way to make the current build abort older builds (which are running) in a workflow job ?
My workflow contains:
- multiple stages to be run after every SCM changes
- a stage to be run once every day based on the last build which passed all stages.
I thought about using waitUntil and stage concurrency: 1
Build #1 passed all normal stages and waits
Build #2 passed all stages -> it should abort Build #1 and waits
Build #3 passed all stages -> it should abort Build #2 and waits ...
So I want to have just one build (the last one) waiting for the last stage and if waitUntil return true, only the last build should enter the last stage.
Thank you in advance.
Any help would be greatly appreciate.