Here is my current situation: We have buildbot with many slaves and many (many) builders. Each slave can only run one build at a time. We have builders triggered nightly or on commit. We do not have a large number of slaves, and the builds take several hours to complete.
Here is what I try to achieve: We would like that when a builder is already running and it is triggered again, it stays pending until its previous instance finishes even though there would be a slave available for it. That would allow other builders to run in the meantime.
I have read Buildbot running sequential builders after they're finished and it does not correspond to my problem.
I have read about interlocks but I am not sure it would be helpful for my situation. http://docs.buildbot.net/current/manual/cfg-interlocks.html
I am aware of the mergeRequests
argument and use it but this only applies to pending builds, not the mechanism which releases the builds from pending to running, or even earlier if the newly-triggered build is started without being pending at all.
Does anyone know how to achieve this?