Why Jenkins returning http 500 while adding git repository?

Viewed 432

I am trying to add a git repository in a freestyle job. However after adding the repository, seeing the error described in the snip provided. HTTP 500 error

2 Answers

In Jenkins, go to Manage Jenkins > Global Tool Configuration > Git. There, determine the path to git.exe from just that to something like C:\Program Files\Git\bin\git.exe—or wherever you have your git.exe file.

I too had the same error. Please use Java Version 11 instead of Java Version 8. Also, install only the suggested plugins for Git.

Related