[Buildbot-devel] Accessing other Build's properties from a BuildStep

Daniel Rus Morales danirus at eml.cc
Mon May 27 15:54:33 UTC 2013


Hi Brian,

I've written a kind of tutorial on how to configure Buildbot to build projects 
with dependencies on each other. The case I draw builds a Django web app and a 
Django web project that depends on the app. It uses Triggerable schedulers and 
Trigger build steps.

Hope it resolves some of your doubts:
https://github.com/danirus/buildbot-sample-conf

Daniel

On Monday 27 May 2013 09:34:07 Brian Lalor wrote:
> I'm looking to create some Jenkins-esque auto-dependency tracking between
> builds for Maven projects.  I haven't found anything already suitable, so
> I'm going to give it a try with BuildBot.  Each project generates one or
> more artifacts which can be used as dependencies by another project. 
> Despite ticket 2478[1] (hence my earlier 0.8.8 query :-) ) I see how I can
> use Trigger/Triggerable to fire a downstream job.  I want to set properties
> on a build after it runs successfully, and then I want to later trigger
> that builder based on those properties.  So Project A will have property
> artifactId=project-a, Project B will have property depends-on=project-b,
> and Project B depends on Project A.  When Project A runs I want to search
> for all builders whose last successful build set a property
> depends-on=project-a, and then I'll trigger a build on that project.
> 
> I have a rough idea of how to do this (figuring out the dependencies between
> projects isn't that hard), but I'm not sure how to query the properties. 
> Can someone shed some light for this newbie?
> 
> Thanks,
> Brian
> 
> [1]: http://trac.buildbot.net/ticket/2478
> 
> --
> Brian Lalor
> blalor at bravo5.org
> 
> 
> 
> ----------------------------------------------------------------------------
> -- Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
-- 
Daniel Rus Morales - http://danir.us
Independent Software Engineer




More information about the devel mailing list