Hudson git clone error

后端 未结 4 1677
不思量自难忘°
不思量自难忘° 2020-12-15 10:36

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

相关标签:
4条回答
  • 2020-12-15 10:48

    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.

    0 讨论(0)
  • 2020-12-15 10:56

    Git plugin 0.7.3 have some issues when used with windows absolute paths.

    Try using relative paths instead.

    0 讨论(0)
  • 2020-12-15 10:57

    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.

    0 讨论(0)
  • 2020-12-15 11:06

    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

    0 讨论(0)
提交回复
热议问题