[Buildbot-commits] [Buildbot] #2212: Property placeholder does not work in shell command
Buildbot
nobody at buildbot.net
Mon Feb 20 17:20:47 UTC 2012
#2212: Property placeholder does not work in shell command
-----------------------+-------------------------
Reporter: DavidIAm | Owner: tom.prince
Type: defect | Status: accepted
Priority: minor | Milestone: 0.8.+
Version: master | Resolution:
Keywords: properties |
-----------------------+-------------------------
Changes (by tom.prince):
* status: new => accepted
* priority: major => minor
* owner: => tom.prince
* version: 0.8.5 => master
* milestone: undecided => 0.8.+
* keywords: property, properties => properties
Comment:
What is going on here is that {{{Property("buildnumber")}}} gets rendered
as an int, which then causes the environment substitution to fail later.
Certainly we should have a better error message here, but I'm not sure if
we want to be automatically coercing things to strings. Certainly it is
reasonable for ints, but we don't also want to do it for arbitrary
objects.
A work around is to do {{{WithProperty("%(buildnumber)s")}}}, which does
deliberately coerce things.
--
Ticket URL: <http://trac.buildbot.net/ticket/2212#comment:5>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list