[Buildbot-devel] Get nothing doing WithProperties("%s", "revision") from a previously source.SVN(mode=export) step

Dustin J. Mitchell dustin at zmanda.com
Tue Apr 8 13:44:17 UTC 2008

On Tue, Apr 8, 2008 at 7:58 AM, J. Félix Ontañón <fontanon at emergya.es> wrote:
>  f.addStep(SVN(svnurl="http://mysvn/myapp", mode="export"))
>  f.addStep(ShellCommand,
>           command=["tar", "czf",
>                   WithProperties("build-r%s.tar.gz", "revision"),
>                   "source"])
>  I get the wrong: "build-.tar.gz"
>  But if i set mode="update" it gets right!: "build-r56.tar.gz"

You should be using the "got_revision" property to get the revision
that the Source step saw.  "revision" is the revision the scheduler
specified, which is usually None (meaning HEAD).  I would guess that
the second time you tried this, you entered a revision manually in the
web interface?


Storage Software Engineer

More information about the devel mailing list