Search code examples
gitjenkinsvagrant

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.


Solution

  • 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.