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

Get the output from git client for debugging

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • git-client-plugin
    • None

      We have been experiencing some infrastructure issues are causing some of our git commands to fail (fetch, pull, ect..) on our Jenkins infrastructure side. We wanted to turn on some deeper git trace levels to capture further information to help us debug the issues. On our jenkins slaves/master we turned on the below to enable git trace. The trace shows up when running via the command line and the env vars show up in the system configuration for each slave/master.

      [jenkins@15d08c2a101e ~]$ more /etc/profile.d/git.sh
      export GIT_CURL_VERBOSE=1
      export GIT_TRACE=1

      The issue we are having is enabling the correct global/job environment variables to show this output in the console of the jobs. We attempted to enable the verbose env var at https://github.com/jenkinsci/git-client-plugin/blob/master/src/main/java/org/jenkinsci/plugins/gitclient/GitClient.java (see attachement) but do not get much more information. Is there an easy way to get the git command output sent to the job console?

            Unassigned Unassigned
            jwstric2 Jonathan Strickland
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: