[Buildbot-devel] Getting Properties value
sergio borghese
sergio.borghese at gmail.com
Sun Sep 1 17:02:52 UTC 2013
Hi All,
I cannot get my head out a (probably silly) problem I'm facing
I would like to get the version control revision to create a string, that
is used to archive the build
So in my build configuration I'm doing something like:
*rev_no = Property('got_revision')*
*pck_basename = "kphone_" + osinfo.machine() + "-r" + rev_no*
but I get the following error:
*pck_basename = "kphone_" + osinfo.machine() + "-r" + rev_no*
* exceptions.TypeError: cannot concatenate 'str' and 'instance' objects*
My understanding was that the Property object was returning integers,
strings or some basic type
Tried converting the rev_no variable to str() or int() but got other errors
instead
I tried several changes to the above code, but no luck so far.
Probably it's just that I'm not a skilled Python coder...
Is there a smarter way to do what I'm doing?
Many thanks
Sergio
--
preferisco ammazzare il tempo,
preferisco sparare cazzate,
preferisco fare esplodere una moda,
preferisco morire d'amore.
(Caparezza)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20130901/2e6ff38d/attachment.html>
More information about the devel
mailing list