Skip to content

johnwaka/Jenkins-spork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.

History

3 Commits
 
 
 
 

Repository files navigation

Jenkins-spork

Failed to connect to repository” Error while setting up Github Jenkins Plugin

This article shows how to fix "failed to connect to repository” Error while setting up Github Jenkins Plugin.

image

You might get this error when you try to paste a repository URL in the "Source Code Management > Git > Repository URL" section of a new job in Jenkins. The problem may occur when your system cannot locate git installation. You need to make sure you have git installed in your system. A simple way to check in Windows is as shown below:

image

Once you have verified you have git installed. If you are using Jenkins on a VM or local system, locate the git installation folder. A simple way to get this location is running a PowerShell command.

image

Once you have the path, you need to set the path to your git executable in Manage Jenkins -> Global Tool Configuration -> Git -> Git Installations -> Path to Git executable.

image

After this you can paste your repository URL and it will not give any errors:

image

About

This is for demo purposes only

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published