1

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.

Michael Tot Korsgaard
  • 3,892
  • 11
  • 53
  • 89

2 Answers2

2

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.

Community
  • 1
  • 1
Tim Biegeleisen
  • 502,043
  • 27
  • 286
  • 360
2

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

Akash Shinde
  • 925
  • 3
  • 14
  • 31
  • 1
    good looks - ran into this issue myself and realized I forgot to install git on the new instance – Joe Nov 06 '18 at 02:14