/build/static/layout/Breadcrumb_cap_w.png

Unable to configure GitHub with Jenkins or Hudson

I have configured new Jenkins setup on a Windows 10 machine.
I have installed GitHub plugin also with it.

But when I try to configure a test repository(tried on many public and private repositories)
I am getting the error as below.

But when I am trying to add the GItHUb project, I am getting the below error the Git source code management repo add section of New Job.
Failed to connect to repository : Command "git.exe ls-remote -h https://github.com/itcuties/Axis-2-client.git HEAD" returned status code 128:
stdout:
stderr: fatal: unable to access 'https://github.com/itcuties/Axis-2-client.git/': Couldn't resolve host 'github.com'
Please suggest how to resolve this.

FLwyc7.png
The git.exe is already in PATH variable of OS.


0 Comments   [ + ] Show comments

Answers (1)

Posted by: mbalazs 7 years ago
White Belt
0
The error says that it can not resolve the hostname "github.com" on DNS. This means it's either a temporary internet connectivity problem, a DNS misconfiguration (does github.com load in your browser from the same machine where Jenkins is running?), or something is blocking Git from accessing the Internet, like an antivirus software. If you have an antivirus, try disabling it temporarily to see if that's causing the trouble.

As an alternative, try using a service like podspace.io where you have the option to deploy a fully configured Jenkins instance with a single click.

Comments:
  • Thanks @mbalazs

    This issue I faced yesterday, but don't know, it is able to connect today without any issue.

    But today I am getting error with private repositories while building the job.WIth public it is successful.

    I am getting the below error.

    ------------------

    Started by user admin
    Building in workspace C:\Windows\system32\config\systemprofile\.jenkins\workspace\InstallCreation
    Cloning the remote Git repository
    Cloning repository https://github.com/erwin-inc/BuildAutomation_DailyInstallCreation.git
    > git.exe init C:\Windows\system32\config\systemprofile\.jenkins\workspace\InstallCreation # timeout=10
    Fetching upstream changes from https://github.com/erwin-inc/BuildAutomation_DailyInstallCreation.git
    > git.exe --version # timeout=10
    using GIT_ASKPASS to set credentials github
    > git.exe fetch --tags --progress https://github.com/erwin-inc/BuildAutomation_DailyInstallCreation.git +refs/heads/*:refs/remotes/origin/*
    ERROR: Timeout after 10 minutes
    ERROR: Error cloning remote repo 'origin'

    ------------ - ur00361883 7 years ago
    • It's hard to tell exactly what's going on based on this little information. This again could be a temporary connectivity problem, or a bug in the Jenkins Git plugin. (For eg. https://issues.jenkins-ci.org/browse/JENKINS-40166).

      What version of Git and the Jenkins Git Plugin are you using? - mbalazs 7 years ago
      • latest one.both are downloaded yesterday only - ur00361883 7 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ