Linux master, windows slave, slave doesn't get the correct git path

1,083 views
Skip to first unread message

chbr...@lltech.fr

unread,
Nov 20, 2013, 11:17:07 AM11/20/13
to jenkins...@googlegroups.com
Hello,

After deciding to give Git plugin 2.0 a try, see issues and roll back to 1.1.26, I can't make my slave work correctly. It's a windows 7 box, with latest msysgit installed (1.8.3). Jenkins has 2 paths for git, /opt/bitnami/git/bin/git for the master's git, and "C:\Program Files (x86)\Git\bin\git.exe" for the slave's git. Those two are specified in Jenkins' configuration.

In slave's configuration I set Git's path to the correct one.

However the slave issues the following:

Started by user Charles Brossollet
Building remotely on smallville in workspace D:\jenkins\workspace\lightct
Checkout:lightct / D:\jenkins\workspace\lightct - hudson.remoting.Channel@3e07b05d:smallville
Using strategy: Default
Last Built Revision: Revision 12bd8bd8e1b520a8a3a64603b43df077fd82ee45 (origin/develop)
Cloning the remote Git repository
Cloning repository ci@lltech:/git/repo.git
Error trying to determine the git version: Error performing command: /opt/bitnami/git/bin/git --version
Assuming 1.6
ERROR: Error cloning remote repo 'origin' : Could not clone ci@lltech:/git/repo.git
hudson.plugins.git.GitException: Could not clone ci@lltech:/git/repo.git
    at hudson.plugins.git.GitAPI.clone(GitAPI.java:273)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986)
    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2394)
    at hudson.remoting.UserRequest.perform(UserRequest.java:118)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:326)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at hudson.remoting.Engine$1$1.run(Engine.java:63)
    at java.lang.Thread.run(Unknown Source)
Caused by: hudson.plugins.git.GitException: Error performing command: /opt/bitnami/git/bin/git clone -o origin ci@lltech:/git/repo.git D:\jenkins\workspace\lightct
    at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:904)
    at hudson.plugins.git.GitAPI.access$000(GitAPI.java:42)
    at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:269)
    at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:248)
    at hudson.FilePath.act(FilePath.java:910)
    at hudson.FilePath.act(FilePath.java:883)
    at hudson.plugins.git.GitAPI.clone(GitAPI.java:248)
    ... 12 more
Caused by: java.io.IOException: Cannot run program "/opt/bitnami/git/bin/git": CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
    at hudson.Proc$LocalProc.<init>(Proc.java:244)
    at hudson.Proc$LocalProc.<init>(Proc.java:216)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:773)
    at hudson.Launcher$ProcStarter.start(Launcher.java:353)
    at hudson.Launcher$ProcStarter.join(Launcher.java:360)
    at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:885)
    ... 18 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    ... 25 more
Trying next repository
ERROR: Could not clone repository
FATAL: Could not clone
hudson.plugins.git.GitException: Could not clone
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1056)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986)
    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2394)
    at hudson.remoting.UserRequest.perform(UserRequest.java:118)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:326)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at hudson.remoting.Engine$1$1.run(Engine.java:63)
    at java.lang.Thread.run(Unknown Source)


Thanks for your help!
Charles

chbr...@lltech.fr

unread,
Nov 20, 2013, 12:51:00 PM11/20/13
to jenkins...@googlegroups.com
On Wednesday, November 20, 2013 5:17:07 PM UTC+1, chbr...@lltech.fr wrote:
Hello,

After deciding to give Git plugin 2.0 a try, see issues and roll back to 1.1.26, I can't make my slave work correctly. It's a windows 7 box, with latest msysgit installed (1.8.3). Jenkins has 2 paths for git, /opt/bitnami/git/bin/git for the master's git, and "C:\Program Files (x86)\Git\bin\git.exe" for the slave's git. Those two are specified in Jenkins' configuration.

 I found the issue, I didn't set the correct Git's binary in job's configuration, it was set to master's path. Setting it to slave's path fixed it.
Reply all
Reply to author
Forward
0 new messages