Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341847 - git not installed on windows7tests slave
Summary: git not installed on windows7tests slave
Status: VERIFIED WORKSFORME
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: CI-Jenkins (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eclipse Webmaster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-04 17:21 EDT by Andrew Niefer CLA
Modified: 2011-04-06 17:33 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Niefer CLA 2011-04-04 17:21:27 EDT
Git does not seem to be installed on the windows7tests slave.  

The orion-jstest-windows job (bug 341676) fails with 
Cannot run program "git": CreateProcess error=2, The system cannot find the file specified

https://hudson.eclipse.org/hudson/job/orion-jstest-windows/6/console
Comment 1 Eclipse Webmaster CLA 2011-04-05 10:23:53 EDT
I've installed git(msysgit).

-M.
Comment 2 Andrew Niefer CLA 2011-04-05 12:54:00 EDT
Does something need to be done to Hudson to pick up a PATH change, or perhaps tell hudson where the git executable is?

I still get the error

Building remotely on windows7tests
Checkout:orion-jstest-windows / c:\hb\workspace\orion-jstest-windows - hudson.remoting.Channel@517da438:windows7tests
Using strategy: Default
Checkout:orion-jstest-windows / c:\hb\workspace\orion-jstest-windows - hudson.remoting.LocalChannel@95149e
GitAPI created
Cloning the remote Git repository
Cloning repository origin/master
$ git clone -o origin/master http://git.eclipse.org/gitroot/e4/org.eclipse.orion.server.git c:\hb\workspace\orion-jstest-windows
ERROR: Error cloning remote repo 'origin/master' : Could not clone http://git.eclipse.org/gitroot/e4/org.eclipse.orion.server.git
ERROR: Cause: Error performing git clone -o origin/master http://git.eclipse.org/gitroot/e4/org.eclipse.orion.server.git c:\hb\workspace\orion-jstest-windows
Cannot run program "git": CreateProcess error=2, The system cannot find the file specified
Comment 3 Andrew Niefer CLA 2011-04-05 12:58:01 EDT
(In reply to comment #2)
This is using the Hudson "Source Code Management" -> Git option.
I guess the alternative is not to use this and instead run git in a batch command since it is on the machine.
Comment 4 Eclipse Webmaster CLA 2011-04-05 13:20:29 EDT
I"ve added the git location to the slaves hudson config. 

-M.
Comment 5 Andrew Niefer CLA 2011-04-05 13:25:28 EDT
We are getting closer:

$ "C:\Program Files\Git\cmd" clone -o origin/master http://git.eclipse.org/gitroot/e4/org.eclipse.orion.server.git c:\hb\workspace\orion-jstest-windows


Cannot run program "C:\Program Files\Git\cmd": CreateProcess error=5, Access is denied
Comment 6 Eclipse Webmaster CLA 2011-04-06 10:11:24 EDT
Fixed.

-M.
Comment 7 Andrew Niefer CLA 2011-04-06 17:33:53 EDT
Working for me now, thanks.