[Buildbot-devel] Variables or else
Dustin J. Mitchell
dustin at zmanda.com
Sun Jun 27 17:10:18 UTC 2010
On Sun, Jun 27, 2010 at 11:23 AM, Marcus <knight1991 at gmx.de> wrote:
> f1.addStep(ShellCommand, name="tar", command=["cd /path/to/foo &&", "tar",
> "zcvf", WithProperties("foo-trunk-svn%(revision)s-%(slavename)s.tar.gz"), "./*"],
>
> but it don't work because it change back to the build path before tar is run.
Well, actually it doesn't work because when you pass a list to
command, it's not parsed by the shell - but && is a shell operator.
You're in luck, though - see tar's -C or --directory option.
Dustin
--
Open Source Storage Engineer
http://www.zmanda.com
More information about the devel
mailing list