[Buildbot-devel] Conditionally skipping build steps on codebase

Pierre Tardy tardyp at gmail.com
Sat Nov 10 00:04:27 UTC 2012


looks like you need a doStepIf.

http://buildbot.net/buildbot/docs/0.8.5/developer/cls-buildsteps.html#buildbot.process.buildstep.BuildStep.doStepIf


Pierre


On Fri, Nov 9, 2012 at 10:26 PM, Bruce Stephens <bruce.stephens at isode.com>wrote:

> I have a build made up from multiple repositories.
>
> Firstly, cool that buildbot now has some support for this! What I've
> been using until now is very hacky, so it looks like I should upgrade.
>
> I can see that I can easily skip source checkout steps, so I can do
>
> factory.addStep(Git(repourl='git://localhost/repos/one.git',
> workdir='one', mode='incremental',codebase='one'))
>
> and this'll only happen if there's a change to repository 'one'.
>
> But then I'd like to only run "make" (or some other commands and things,
> as yet undecided) in the same way. I lose some of the desired effect if
> I'm running all these things all the time (most of the repositories
> change infrequently).
>
> What's the cleanest way to do that?
>
> Hmm, come to think of it, maybe I have to code this myself using build
> properties: I'd like to rebuild everything after any repository that's
> changed, so likely I'll have to do some thinking for how to organise
> this.
>
> Does that sound feasible, or am I going to run into some problems?  Or
> is there some simpler solution---seems like this would be a common
> enough desire (once you have multiple codebases at all)?
>
>
> Also, it feels like I'm repeating the URLs lots of times: once for the
> codebaseGenerator, once for the change_source, once in codebases for
> SingleBranchScheduler and then again for the source checkout step.
>
> Not a big deal, I guess, since this'll be generated from another source,
> but it feels wrong. Are any of these redundant or replacable in some
> easy way?
>
>
> ------------------------------------------------------------------------------
> 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/ac0ad81e/attachment.html>


More information about the devel mailing list