[Buildbot-devel] Conditionally skipping build steps on codebase

Bruce Stephens bruce.stephens at isode.com
Sat Nov 10 17:29:13 UTC 2012


Pierre Tardy <tardyp at gmail.com> writes:

> looks like you need a doStepIf.
>
>
> http://buildbot.net/buildbot/docs/0.8.5/developer/cls-buildsteps.html#buildbot.
> process.buildstep.BuildStep.doStepIf

Sure, I guessed that. It's not at all clear what I should put in that,
though.

It's fed step (a ShellCommand, presumably). I can call
getProperty('got_revision') on that but that contains all revisions. If
I could get to the list of changes then I presume I could find the
codebase of each and that would do, but for the moment I'm at a loss as
to how to do that. Any hints on how to proceed?

Judging by the logging GitPoller is producing suitable changes. Slightly
disappointingly the Git buildstep is doing 'git reset --hard' even for
codebases that don't have changes, but maybe that's necessary, and
anyway, if I could fix the ShellCommand step probably I could apply the
same to the source checkout step.

[...]





More information about the devel mailing list