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

MultiSCMRevisionState.revisionStates cannot differentiate multiple instances of a single SCM type

XMLWordPrintable

      public void add(String scmClass, SCMRevisionState scmState) {
        revisionStates.put(scmClass, scmState);
      }
      ...
      revisionStates.add(scm.getClass().getName(), scmState);
      

      cannot work when you want to use more than one copy of a given SCM plugin in a single job. First of all you should use scm.getType() rather than hardcoding the class name. Second you should include the result of getModuleRoots in the hash key.

            kbell Kevin Bell
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: