[Buildbot-devel] WithProperties() in a buildstep?
Matthew Morse
matt at apple.com
Fri Jun 17 01:18:03 UTC 2011
Hi,
I'm using properties in ShellCommand steps like:
a_step = shell.ShellCommand(
description = "Adding buildstamp",
descriptionDone=["Finished","adding buildstamp"],
command = ["mv", "<foo>", WithProperties("%s-%d", "buildername", "buildnumber")],
workdir = dir,
haltOnFailure=True,
)
I'd like to also use them in other sorts of steps, but apparently that isn't supported (as I read the doc: http://buildbot.net/buildbot/docs/latest/full.html#WithProperties) . For example, I'd like a source.Git step to be able to look up the branch that triggered the build:
lagos_setup_factory.addStep(
source.Git,
repourl= some_url,
branch = WithProperties("%(the_branch)s", the_branch=determine_branch),
mode = "clobber",
submodules=False,
workdir="build",
haltOnFailure=True,
)
But, I'm getting errors like:
fatal: Invalid refspec '+Unpersistable('Unpersistable data: instance of class buildbot.process.properties.WithProperties deemed insecure')'
...which I think is because WithProperties isn't supported in a Git step. Is there a workaround?
Thanks,
- Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110616/fc327cbb/attachment.html>
More information about the devel
mailing list