[Buildbot-devel] calling getSourceStamps()
Esther Baruk
esther.baruk at lexifi.com
Tue Feb 19 17:31:57 UTC 2013
Hi,
When adding a step, you can add some conditions like doStepIf that are
functions that take a step as a parameter and return a boolean.
You can have access to the list of files modified in the current build
with the "allChanges" function.
Look at the Build class:
http://buildbot.net/buildbot/docs/0.8.7p1/reference/buildbot.process.build.Build-class.html
You can access the currentbuild with thestep parameter by calling
step.build. (see Buildstep class
http://buildbot.net/buildbot/docs/0.8.7p1/reference/buildbot.process.buildstep.BuildStep-class.html)
Your code would look like "lambda step: for ss in
step.build.allChanges() ..."
Cheers,
Esther Baruk
Le 19/02/2013 17:55, Jim McHale a écrit :
> I'm running 0.8.7p1, and want a build step to be able to examine the
> list of files modified in the current build...
>
> How can I get the list of changed source files? I see how the
> mail_notifier does it,
> but I dont know what to pass to an addStep() such that I could then
> say "for ss in <what do I put here?>.getSourceStamps()"
>
> Any pointers?
> thanks
> -jim
>
>
> ------------------------------------------------------------------------------
> 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_feb
>
>
> _______________________________________________
> 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/20130219/9cf26af7/attachment.html>
More information about the devel
mailing list