[Buildbot-devel] Conditionally skipping build steps on codebase

Mike Sorrenti mikesorrenti at gmail.com
Sun Nov 11 00:19:17 UTC 2012


I think you may be able to do this with doStepIf and the build's
SourceStamp information. I'm not sure if a SourceStamp is created for every
codebase, or only the one that has changed. Unable to check right now,
unfortunately.

Hope that helps
-Mike

>
>
> >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#bui
> >>ldbot.
> >> 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.
> >
> >[...]
> >
> >
> >--------------------------------------------------------------------------
> >----
> >Everyone hates slow websites. So do we.
> >Make your web apps faster with AppDynamics
> >Download AppDynamics Lite for free today:
> >http://p.sf.net/sfu/appdyn_d2d_nov
> >_______________________________________________
> >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/20121110/358ce6dd/attachment.html>


More information about the devel mailing list