[Buildbot-commits] [Buildbot] #2312: Add the build status to build properties

Buildbot nobody at buildbot.net
Mon Jun 25 09:10:25 UTC 2012


#2312: Add the build status to build properties
------------------------+--------------------
Reporter:  krf          |       Owner:
    Type:  enhancement  |      Status:  new
Priority:  major        |   Milestone:  0.9.+
 Version:  0.8.6p1      |  Resolution:
Keywords:  mail         |
------------------------+--------------------

Comment (by krf):

 Yep. That's what we did for now.

 For other people interested in this, here's the code:

 {{{
 class BuildStatusRenderable(util.ComparableMixin):
     implements(interfaces.IRenderable)

     def getRenderingFor(self, props):
         build = props.getBuild()
         results = build.results
         return Results[results]

 extraHeaders = {
     'X-Build-Status': BuildStatusRenderable()
 }
 }}}

 Feel free to close this.

 Thanks

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2312#comment:3>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list