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

Brian Lalor blalor at bravo5.org
Mon May 27 13:34:07 UTC 2013

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?


[1]: http://trac.buildbot.net/ticket/2478

Brian Lalor
blalor at bravo5.org

More information about the devel mailing list