为了使用buildbot根据事件的状态(基于文件实现threading.Event接口)触发不同的操作(启动,检查,停止)和取消构建请求,我们使用了buildbot.plugins的nextBuild属性。 util.BuilderConfig(http://docs.buildbot.net/latest/manual/cfg-builders.html):BuilderConfig(..., nextBuild=partial(handle_property_action_for_next_build, event))因此,根据操作(启动,停止,检查)和事件的状态,我们将使用cancelBuildRequest取消所有请求:def handle_property_action_for_next_build(event, _, requests): action = requests[0].properties.getProperty("action") if action == "start": if event.is_set(): for request in requests: request.cancelBuildRequest() return None else: event.set()但是cancelBuildRequest方法在一段时间前已被删除:https : //github.com/buildbot/buildbot/commit/95b90d7f0881dd4891199b16be9af2242729081b#diff-e55fd5266f5206f358b6da23011e41f0所以问题是我如何用buildbot 1.2.0取消构建请求?它不需要在nextBuild属性中,而在我有的地方:访问当前动作可以通过自定义事件可以取消构建请求
添加回答
举报
0/150
提交
取消