How to stop a build to trigger when current build is in Progress.
Hi,
Is there a way to stop a build trigger when the current build is in progress.
Currently a build gets trigger if there is a check in into the Source control. So when the build is in progress if there is another check in into the Source control another build gets triggered, when the current one is in progress. Is there any other option to stop the second build trigger when the current one is in progress. I know we have an option for schedule, but i don't want to use it.
Thanks
Please sign in to leave a comment.
Hi Sandeep,
no, there isn't currently the possibility to stop the trigger when a build is triggered. There is a "quiet period" option on the trigger that will stop the trigger for a given period of time, so you can use that. There's another possibility: You could set the first step of the build to be a script that pauses the build configuration through the REST API, and the last step, set up to run always, that reenables it. This will have the effect of pausing new builds from triggering while this one is running.