[Buildbot-devel] sleep in buildbot.process.buildstep.BuildStep
Boris Savelev
boris.savelev at gmail.com
Fri Sep 6 09:25:28 UTC 2013
Hello!
I have build system with buildbot. I need to test packages produced with
buildbot on another service.
I have step `Test` which push packages to service and start testing. In
this step I also need wait result of test and return FAIL or SUCCESS
Example class:
class Testing(buildbot.process.buildstep.BuildStep):
def start(self):
client = ATSClient()
build = self.getProperty('build')
client.push(build)
while client.test_is_finished():
time.sleep(60) #check it once in minute
if client.is_failed():
return self.finished(buildbot.status.builder.FAILURE)
else:
return self.finished(buildbot.status.builder.SUCCESS)
This code works but when this code work buildbot didn't responding.
I think that this code works in same thread or something like that and
block buildmaster.
Can you help me, how I can create custom step in right way?
How I can create step that wait something and didn't block buildmaster?
env:
Buildbot: 0.8.7p1
Twisted: 13.1.0
Jinja: 2.6
Python: 2.7.3 (default, Jan 2 2013, 13:56:14) [GCC 4.7.2]
Buildmaster platform: linux2
--
Boris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20130906/9d732c3e/attachment.html>
More information about the devel
mailing list