[Buildbot-devel] Skip step on a branch

johnmcarr johnmcarr at me.com
Tue Aug 23 06:27:47 UTC 2011

I think the step you can access from your lambda is a run-time entity, i use something similar to this:

def branch_check(step):
        return step.build.getProperties()["branch"] in ("foo", "bar", "baz")
    except KeyError:
        return False

On 23 Aug, 2011,at 06:54 AM, Ian Zimmerman <itz at buug.org> wrote:

> Is there any nice way of deciding whether do perform a particular step
> depending on the source branch? The doStepIf parameter can be a
> function but that function is only passed the step itself as an
> argument, i.e. a config-time entity. How can I make the function
> sensitive to run-time environment/properties?
> -- 
> Ian Zimmerman
> gpg public key: 1024D/C6FF61AD
> fingerprint: 66DC D68F 5C1B 4D71 2EE5 BD03 8A00 786C C6FF 61AD
> Rule 420: All persons more than eight miles high to leave the court.
> ------------------------------------------------------------------------------
> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
> user administration capabilities and model configuration. Take
> the hassle out of deploying and managing Subversion and the
> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110823/697817fb/attachment.html>

More information about the devel mailing list