[Buildbot-commits] [Buildbot] #2526: Un-started build steps with properties in descriptions fail

Buildbot trac trac at buildbot.net
Tue Aug 6 15:30:09 UTC 2013


#2526: Un-started build steps with properties in descriptions fail
---------------------+------------------------
Reporter:  cmumford  |       Owner:
    Type:  defect    |      Status:  new
Priority:  major     |   Milestone:  undecided
 Version:  0.8.7p1   |  Resolution:
Keywords:            |
---------------------+------------------------

Comment (by cmumford):

 I did implement a workaround:

 {{{
 @implementer(IRenderable)
 class StepDescription(object):
     def getRenderingFor(self, props):
         if props.hasProperty('test_build_num'):
             build_no = props['test_build_num']
         else:
             build_no = '?'
         return ['Test %s' % build_no]
     def __getitem__(self, key):
         return unicode('')
 }}}

 And then just set the description of a BuildFactory step to a new instance
 of this renderable.

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


More information about the Commits mailing list