Hi Jerry,
Have you made any progress on this? I'm working on a windows slave
configuration with hg. I may be able to help some, but I'm still
figuring this out myself. Of course I can't help right away without
asking a bunch of questions.
Are you running Jenkins on the slave as a windows service?
It looks like the clone is your first command - is this Jenkins
cloning to do SCM? Can you run hg in a job that Jenkins is not using
SCM? The environment when Jenkins is doing the clone itself is not
the same as it is in the build script. My build is OK when I don't
have Jenkins do the clone, but it fails when I have Jenkins doing SCM
management.
There is an error that looks like it can't find tortoisePlink.exe.
That is used for ssh. An alternative is to use openssh that comes
with cygwin. That's what I'm doing, so I haven't seen this problem. It
is finding hg, so I don't know why it wouldn't find tortoisePlink.
Just add "ssh = /usr/bin/ssh -C" in the mercurial.ini file and
the .hgrc in the cygwin home dir (I don't really know which one is
needed because I have it set in both). You have to explicitly mark
openssh to be installed when installing cygwin.
The script you are running in the console doesn't work for me either.
It doesn't work with the command "dir" or "ls", so I don't know what
is happening here. I don't know groovy so I'm just copying your
script.
After that there is this message:
java.io.IOException: Cannot run program "hg" (indirectory"C:\jenkins
> \dailyBuild\workspace\test"): CreateProcess error=267, Thedirectorynameisinvalid
Which is where I am at. My build script works when I'm not using
Jenkins SCM. The build fails with a message like that when Jenkins is
trying to clone the repository.
I'll keep you posted on my progress.
-Cheryl
On Jun 10, 7:26 am, Jerry <
gpjerrymalo...@gmail.com> wrote:
> Hi, I've just set up a new Windows build slave. When I try to run a
> test job, I get the following:
>
> *****
> Started by user builder
> Building remotely on gunter
> $ hg clone --rev default ssh://scm//opt/hg/test/Test C:\jenkins
> \dailyBuild\workspace\test
> remote: '"TortoisePlink.exe"' is not recognized as an internal or
> external command,
> remote: operable program or batch file.
> abort: no suitable response from remote hg!
> ERROR: Failed to clone ssh://scm//opt/hg/test/Test
> [test] $ hg log --rev . --template {node}
> java.io.IOException: Cannot run program "hg" (indirectory"C:\jenkins