[Buildbot-devel] force-page property logs? and BuildStep.doStepIf not called
Mike Winter
miwinter at cisco.com
Fri Mar 26 19:26:28 UTC 2010
2 problems
1) Cant see properties from force-page showing in build/request. I see log shows requester and branch, but none of the property slots.
2) I am looking for an example of Property controlling steps that can be run in a build that can be managed from a force-build page, for instance avoiding VCS. Something to control BuildStep.doStepIf, re:
step =ShellCommand(name=name,
command=["./runTests.sh", "--test", "%s/%s" % (component, v)],
workdir="build/test",
description="runtests in %s/%s" % (component, v))
def checkForSkipOrRun(step):
props = step.build.properties
if props.has_key('ONLY_THAT_STEP')
return step.name == props['ONLY_THAT_STEP']
elif props.has_key('SOME_STEPS_REGEX'):
pattern = props['SOME_STEPS_REGEX']
return re.search(pattern, step.name)
else:
return True
step.doStepIf = checkForSkipOrRun <========= the new thing
b.addStep(step)
The doStepIf fn (checkForSkipOrRun ) is not being called. I added a twlog.msg at start of fn and never see it in log. Then....digging I see some clues.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20100326/e4b99a88/attachment.html>
More information about the devel
mailing list