[Buildbot-devel] doStepIf examples?

Na'Tosha Bard natosha at unity3d.com
Thu Aug 14 22:11:47 UTC 2014


We do this a lot.  We have two little utility functions available to all of
our projects:

def BuildFailed(step):
    return step.build.result == FAILURE

def BuildPassed(step):
    return step.build.result == SUCCESS

So then we can just do "doStepIf=BuildPasssed".


2014-08-14 18:39 GMT+02:00 Stephen Davis <buildbot at soundgeek.org>:

> As a followup to my last question on haltOnFailure, does anybody have an
> example of adding a doStepIf parameter to a build step to prevent it from
> running if the current build state is "failed" (meaning that a previous
> step failed).
> I have a build that is essentially:
> scm update
> build Debug
> build Release
> run unit tests
> run perf tests
> run perf tests results db update
> I don't want the last three steps to run if any of the preceding steps
> failed but I want the build to go as far as it can in general so I don't
> want to set haltOnFailure=True on all of the preceding steps.
> thanks,
> stephen
> ------------------------------------------------------------------------------
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel

*Na'Tosha Bard*
Lead Software Developer | Unity Technologies - Copenhagen

*E-Mail:* natosha at unity3d.com
*Skype:* natosha.bard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20140815/88ea37b2/attachment.html>

More information about the devel mailing list