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

Enhance logging to shows that a reference repository is being used

    Details

    • Similar Issues:

      Description

      When configuring a reference repository in the Git SCM (configuration of the Additional Behavior > Advanced Clone Options), the console output does not show anything about the fact that it is using a reference repository. So it is hard to confirm whether the configuration is applied and operational. However any error would be logged correctly - referring to the code

      It would be great if there was a line telling that the clone points to a reference repository.

      Note: We can check that when the repository is cloned in a workspace, the .git directory has a file objects/info/alternates which contains the location of the reference repository (under $JENKINS_HOME/workspace/<jobName>/.git).

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Allan Burdajewicz
          Path:
          src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java
          src/main/java/org/jenkinsci/plugins/gitclient/JGitAPIImpl.java
          http://jenkins-ci.org/commit/git-client-plugin/098385b6e71738724b8964872defb99d216d72ff
          Log:
          JENKINS-46737 Improve logging when linking a reference repository.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Allan Burdajewicz Path: src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java src/main/java/org/jenkinsci/plugins/gitclient/JGitAPIImpl.java http://jenkins-ci.org/commit/git-client-plugin/098385b6e71738724b8964872defb99d216d72ff Log: JENKINS-46737 Improve logging when linking a reference repository.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Mark Waite
          Path:
          src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java
          src/main/java/org/jenkinsci/plugins/gitclient/JGitAPIImpl.java
          http://jenkins-ci.org/commit/git-client-plugin/55d96f5997f2f9e2c26c89c0395a7a5fe31cc53d
          Log:
          Merge pull request #272 from Dohbedoh/feature/JENKINS-46737

          JENKINS-46737 Improve logging when linking a reference repository.

          Compare: https://github.com/jenkinsci/git-client-plugin/compare/85e6a0da7559...55d96f5997f2

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java src/main/java/org/jenkinsci/plugins/gitclient/JGitAPIImpl.java http://jenkins-ci.org/commit/git-client-plugin/55d96f5997f2f9e2c26c89c0395a7a5fe31cc53d Log: Merge pull request #272 from Dohbedoh/feature/ JENKINS-46737 JENKINS-46737 Improve logging when linking a reference repository. Compare: https://github.com/jenkinsci/git-client-plugin/compare/85e6a0da7559...55d96f5997f2
          Hide
          markewaite Mark Waite added a comment -

          Will be fixed with release of git client plugin 2.6.0

          Show
          markewaite Mark Waite added a comment - Will be fixed with release of git client plugin 2.6.0
          Hide
          markewaite Mark Waite added a comment -

          Included in git client plugin 2.6.0, released 27 Oct 2017

          Show
          markewaite Mark Waite added a comment - Included in git client plugin 2.6.0, released 27 Oct 2017

            People

            • Assignee:
              allan_burdajewicz Allan BURDAJEWICZ
              Reporter:
              allan_burdajewicz Allan BURDAJEWICZ
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: