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

Multiple SCMs Plugin doesn't track multiple Git Repo SHA1

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When we go to each build log, as in ...jenkins/job/<job name>/1, we have a list of Changes from Git which identifies the corresponding SHA1 against the changes. However, since Jenkins job configure only gives 1 GitHub project url, and we are using the Multiple Git plugin, the SHA1 attached always refer to the 1 repo, even though it might belong to a different repo.

      Example:

      repo1
      -change 1: SHA1=12345
      repo2
      -change 3: SHA1=09876

      The change list on that page shows

      Changes
      Git

      Changelog updated by ... (commit: 12345) (detail)
      Getting gitzip version (commit: 09876) (detail)

      When I click on the commit link, they both leads to repo1's commit history. The first link will work because the SHA1 belongs to repo1, the second link will fail

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: JACOB R. GARCOWSKI
          Path:
          src/main/java/org/jenkinsci/plugins/multiplescms/MultiSCM.java
          src/main/java/org/jenkinsci/plugins/multiplescms/MultiSCMChangeLogParser.java
          http://jenkins-ci.org/commit/multiple-scms-plugin/cfe435be85573a90423a760beacbf405ed40055b
          Log:
          Changing to key change parsers off of SCM.getKey() instead of getType().

          This change is required since different ChangeLogParsers are needed when
          multiple git SCMs are used, since each goes to a different repository.

          Tested only with git, but should not break other SCMs because of how
          getKey() is defined in the Jenkins API.

          [FIXED JENKINS-25131]

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: JACOB R. GARCOWSKI Path: src/main/java/org/jenkinsci/plugins/multiplescms/MultiSCM.java src/main/java/org/jenkinsci/plugins/multiplescms/MultiSCMChangeLogParser.java http://jenkins-ci.org/commit/multiple-scms-plugin/cfe435be85573a90423a760beacbf405ed40055b Log: Changing to key change parsers off of SCM.getKey() instead of getType(). This change is required since different ChangeLogParsers are needed when multiple git SCMs are used, since each goes to a different repository. Tested only with git, but should not break other SCMs because of how getKey() is defined in the Jenkins API. [FIXED JENKINS-25131]

            People

            Assignee:
            kbell Kevin Bell
            Reporter:
            tonyyang Tony Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: