[Buildbot-commits] [Buildbot] #2524: Property('buildnumber') returns None on first build

Buildbot trac trac at buildbot.net
Tue Jul 2 14:23:54 UTC 2013


#2524: Property('buildnumber') returns None on first build
---------------------+-----------------------
Reporter:  cmumford  |      Owner:
    Type:  defect    |     Status:  new
Priority:  major     |  Milestone:  undecided
 Version:  0.8.7p1   |   Keywords:
---------------------+-----------------------
 When using Property() in ShellCommand it will always fail on the first
 build - at least when reading the 'buildnumber' property.

 I created a default master/slave and added this one line to the default
 factory.

 factory.addStep(ShellCommand(command=["echo", Property('buildnumber')],
                         description=Interpolate('build
 #%(prop:buildnumber)s')))

 And when running the first build you will see this in the build #0 stdio:

 argv: ['echo', 'None']

 But on build #1 (second build) you will see the correct value:

 argv: ['echo', '1']

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2524>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list