[Buildbot-devel] workdir Usage

Charles Lepple clepple at gmail.com
Tue Dec 2 03:59:08 UTC 2008

On Mon, Dec 1, 2008 at 1:10 PM, David A. Greene <greened at obbligato.org> wrote:
>  f.addStep(ShellCommand(command=["cd", "./build-llvm-initial/src"]))

Hopefully someone else has time to address the workdir issue, but
basically, any time you have only a "cd some/dir" command in a step,
it is a no-op.

Each ShellCommand is executed in its own sub-shell, and the "cd" only
affects that shell instance.

If you pass a string to ShellCommand instead of a list, and include
some commands after the "cd", that might get you closer to what you
want, but aside from that, each new step after e.g. source.SVN
defaults to $slavedir/build.

- Charles Lepple

More information about the devel mailing list