#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
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits