Jenkins could not run git

前端 未结 15 1398
臣服心动
臣服心动 2020-12-29 01:22

I\'ve installed Jenkins on my mac (osx lion). But I couldn\'t get it work. This is the stacktrace I\'ve got:

Started by user anonymous

Checkout:workspace /          


        
15条回答
  •  我在风中等你
    2020-12-29 02:23

    I had similar problem, the solution for Windows looks the same (my Jenkins is installed on a Windows machine):

    Global settings:

    Go to Manage jenkins -> Configure System -> Git installations add there the git exe path (for example: C:\Program Files\Git\bin\git.exe), or you can use environment variable.

    For Jenkins version 2.121.3, Go to Manage jenkins -> Global tool configuration -> Git installations -> Path to Git executable: C:\Program Files\Git\bin\git.exe

    Jenkins job side:

    Go to Source code Management -> select git, add your repository, choose connection to repository (http/ssh) and add credentials and it should work.

提交回复
热议问题