[Buildbot-devel] OSError: [Errno 2] No such file or directory
A.T.Hofkamp
a.t.hofkamp at tue.nl
Thu Aug 21 13:41:22 UTC 2008
Raja.Pavan.Kumar.G wrote:
> Buildbot version: 0.7.8
> Twisted version: 2.2.0
>
> AS part of my buildbot setup, I am executing a shell command in the
> slave environment. (This has been coded as part of the master.cfg file)
>
> This command is failing
>
> f1.addStep(shell.ShellCommand, description= "chdir", command= ['cd', './tempGitBranch'])
'cd' is a shell command, so it won't work without a shell (which you specify
by using the list notation for the command).
To make it work, execute the command in a shell. However, that would probably
not do what you want.
If you use a shell in the above command, you would start a new shell (in a new
process), do a 'cd' inside that shell, and exit the shell.
In particular, the working directory of the current slave process is not
affected by the command.
Instead of the cd command, you may want to investigate the 'work_dir='
parameter of the step (iirc).
Albert
More information about the devel
mailing list