[Buildbot-devel] WithProperties? adding to an existing build
Jim Kelly
JKelly at vectorworks.net
Mon Jul 4 18:26:51 UTC 2011
You'll want to change that to:
command=[
"ant", "build", "-f", /somewhere/build.xml",
"-Dsdk.dir=/usr/android-sdk-linux_86/",
"-Dandroid.loc=android",
"-Dout.dir=/home/aname/output",
WithProperties("-Dsvn.revision=%(revision)s")
])
You can't cat a string and a WithProperties object together, because WithProperties is just a pointer to something that will later provide a string, not an actual string.
Jim
-----Original Message-----
From: Neal Chant [mailto:neal at ethermonkey.net]
Sent: Mon 7/4/2011 1:16 PM
To: buildbot-devel at lists.sourceforge.net
Subject: [Buildbot-devel] WithProperties? adding to an existing build
Hi,
Want to add a WithProperties to an existing build. It's ShellCommand
doing an Ant build;
When used separately the WithProperties("%s","revision") functions
correctly & returns the revision number. I am struggling with my
python-foo to correctly get the revision number into the
-Dsvn.revision=XX .
Tried to date: escaping the " with \ and concating the string together
and the other method of %(revision)s .
Any pointers on how I can achieve this?
Many thanks
Neal
Code:
aname.addStep(ShellCommand,
name="antbuild-aname-app",
description="BUILD: the main aname application",
timeout=180,
haltOnFailure= True,
command=[
"ant", "build", "-f", /somewhere/build.xml",
"-Dsdk.dir=/usr/android-sdk-linux_86/",
"-Dandroid.loc=android",
"-Dout.dir=/home/aname/output",
#"-Dsvn.revision=WithProperties("%s","revision")"
])
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Buildbot-devel mailing list
Buildbot-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/buildbot-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110704/3c6cf219/attachment.html>
More information about the devel
mailing list