I have created free-style software project in Hudson.
I want to clone a public Git repository: git://github.com/bret/watir.git
Build fails with error message
Looks like hudson git plugin remote windows slave clone post was right. When I go to Manage Hudson > Configure System, in Git > Git executable
section, there is error There's no such executable git in PATH
. (If takes a few seconds for Hudson to display the error after the page is displayed.) Adding C:\Program Files\Git\bin
to path and restarting Hudson solved the problem.
Git plugin 0.7.3 have some issues when used with windows absolute paths.
Try using relative paths instead.
It's worth noting that if the cloning process itself has an issue you will also see this problem. I have had issues with one of my boxes failing 4 out of 5 times on the initial clone of a large repository, and hudson kept throwing this error. A good way to verify this is the problem, and it's not Hudson being unable to find the git executable, is to clone the repository into the Hudson workspace manually, and then run a Hudson build: if Hudson is configured properly the build will succeed and report that there are no changes.
I needed to try with the ssh git@github.company.co.uk:organisation/repo.git
url instead the https https://github.company.co.uk/organisation/repo.git