[Buildbot-devel] WithProperties? adding to an existing build

Neal Chant neal at ethermonkey.net
Mon Jul 4 17:16:27 UTC 2011


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")"
  ])






More information about the devel mailing list