• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • 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

      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'

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

          [JENKINS-42672] Unable to fetch Private repository in GitHub

          console output.txt

          THe above is the console output of the job where the fetching of repo is failing from private repo of github..

           

          And the system log is below.

          System log.txt

          uday kiran reddy added a comment - console output.txt THe above is the console output of the job where the fetching of repo is failing from private repo of github..   And the system log is below. System log.txt

          Oleg Nenashev added a comment -

          Seems the provided log does not contain the timeframe of the build

          Oleg Nenashev added a comment - Seems the provided log does not contain the timeframe of the build

           I am new to this product, so I didn't understand what you are asking exactly.

          I will explain you what I have done till now.

           

          1. Installed java 8 and Jenkins (tried with Tomcat and also through command line (java -jar jenkinswarfile)).And Git application.
          2. Installed GitHub plugin
          3. Created a freestyle job with a public repository along with the jenkins credentials for github.It is building.
          4. Created a similar job for private repository and the github fetching is failing.
          5. I am able to clone same repo from git application but not through jenkins.

          When you asked for system log, I went to the jenkins configure section and selected "All logs" in the sytem logs and shared the content to you along with the command line output of the job.

           

          I don't know about timeline you are asking for.

           

          uday kiran reddy added a comment -  I am new to this product, so I didn't understand what you are asking exactly. I will explain you what I have done till now.   Installed java 8 and Jenkins (tried with Tomcat and also through command line (java -jar jenkinswarfile)).And Git application. Installed GitHub plugin Created a freestyle job with a public repository along with the jenkins credentials for github.It is building. Created a similar job for private repository and the github fetching is failing. I am able to clone same repo from git application but not through jenkins. When you asked for system log, I went to the jenkins configure section and selected "All logs" in the sytem logs and shared the content to you along with the command line output of the job.   I don't know about timeline you are asking for.  

          Oleg Nenashev added a comment -

          For newbie users I would recommend generating a support bundle via https://wiki.jenkins-ci.org/display/JENKINS/Support+Core+Plugin

          Oleg Nenashev added a comment - For newbie users I would recommend generating a support bundle via https://wiki.jenkins-ci.org/display/JENKINS/Support+Core+Plugin

          I didn't find option to raise a ticket there.could you please help

          uday kiran reddy added a comment - I didn't find option to raise a ticket there.could you please help

          Oleg Nenashev added a comment -

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

          Oleg Nenashev added a comment - You need to generate the support bundle and to attach it to this ticket

          uday kiran reddy added a comment - support_2017-03-12_11.17.45.zip

          uday kiran reddy added a comment - support_2017-03-12_11.17.45.zip

          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.

          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.

          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.

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

              Created:
              Updated:
              Resolved: