Michael Tot Korsgaard
Michael Tot Korsgaard

Reputation: 4014

Jenkins can''t connect to Git repository

I'm trying to set up Jenkins referencing a Git repository. However I get this strange error

enter image description here

Any idea what is wrong. The repository works fine on my team mates computers.

Upvotes: 2

Views: 21381

Answers (2)

Akash Shinde
Akash Shinde

Reputation: 955

Possible assumptions for this error


Make sure you have permission to access this repo on jenkins server machine. you can check it by putting git clone http://repo.git on cmd or terminal whatever os you are using.


Make sure git installed on jenkins server or not,if not then you need to install git on jenkins server first,then try adding git repo to jenkins.


If git is installed on jenkins server machine then check PATH env variable has proper git binary executable point location

Upvotes: 2

Tim Biegeleisen
Tim Biegeleisen

Reputation: 520888

Even though your "mates" have access to the Goatic/hangman git repository, Jenkins does not as it is running under a different user. You can add credentials from the Jenkins admin screen by doing Manage Jenkins -> Configure System

enter image description here

Have a look at this SO post for more information.

Upvotes: 2

Related Questions