Reputation: 1070
I have a windows machine running jenkins. I have attached a macos node to perform the build task.
On the jenkins job configuration page I added git for scm.
When I start the build job, it starts runnning on the macos instance correctly, but fails with the following:
hudson.plugins.git.GitException: Error performing command: git.exe init
Caused by: java.io.IOException: Cannot run program "git.exe"
Which is very reasonable, since it is a macos machine. What should I do to get the git plugin run git correctly?
Thank you
Upvotes: 0
Views: 1055
Reputation: 10382
On your macos node, I think you have to configure Git in the tools section:
Maybe you also have to overwrite the PATH environment variable:
Does it help?
Upvotes: 2