how to lock steps in buildbot

拜拜、爱过 提交于 2019-12-07 16:51:39

问题


I have a builder which consists of steps A, B, and C; and a second builder which consists of steps U, V, and W: How can I 'block' step U until steps A and B are finished? So basically I want that steps C and U run parallel to each other.

My first idea was to introduce two interlocks, a and b: step A demands lock a, step B demands lock b, and step U demands a and b at the same time.

But in this situation the execution order is A->U->B, and not A->B->U as I want it to be. The reason: steps are greedy for locks. Step U is blocked because of lock a, but despite that it requires lock b. And this blocks step B until step U is finished.


回答1:


Try using a Triggerable scheduler for your builder which performs steps U,V,W. In the first builder add a step Trigger after "B" and before "C". This should bring you the desired behaviour ...



来源:https://stackoverflow.com/questions/4914259/how-to-lock-steps-in-buildbot

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!