Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42672

Unable to fetch Private repository in GitHub

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Critical
    • Resolution: Not A Defect
    • core, github-plugin
    • apache-tomcat-7.0.75,jenkins-2.49 and tried on later versions also,windows (7,8.1,10,server 2012 R2),jdk-8u121-windows-x64,google chrome and edge browser,The error is same in both deployment in tomcat and also running the jar file from command line
    • 1.0

    Description

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

      I am getting the below error.

       

      The error is same in both deployment in tomcat and also running the jar file from command line.

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

      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'

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

      Attachments

        Activity

          oleg_nenashev Oleg Nenashev added a comment -

          You need to generate the support bundle and to attach it to this ticket

          oleg_nenashev Oleg Nenashev added a comment - You need to generate the support bundle and to attach it to this ticket
          ur00361883 uday kiran reddy added a comment - support_2017-03-12_11.17.45.zip
          ur00361883 uday kiran reddy added a comment - support_2017-03-12_11.17.45.zip
          paulerickson Paul Erickson added a comment -

          Your console output looks different from mine, like you're not using credentials or something, but I learned that when using a personal access key, you need to include the username. Without it, the organization scan goes fine, but the fetch fails.

          paulerickson Paul Erickson added a comment - Your console output looks different from mine, like you're not using credentials or something, but I learned that when using a personal access key, you need to include the username. Without it, the organization scan goes fine, but the fetch fails.

          Looks like you didn't configure gitscm with keys for accessing your private repo. I see nothing related to github plugin.

          integer Kanstantsin Shautsou added a comment - Looks like you didn't configure gitscm with keys for accessing your private repo. I see nothing related to github plugin.

          People

            Unassigned Unassigned
            ur00361883 uday kiran reddy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: