Androrider
Androrider

Reputation: 1070

Jenkins git plugin fails on mac os

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

Answers (1)

Bruno Lavit
Bruno Lavit

Reputation: 10382

On your macos node, I think you have to configure Git in the tools section:

enter image description here

Maybe you also have to overwrite the PATH environment variable:

enter image description here

Does it help?

Upvotes: 2

Related Questions