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

Global Libraries SCM added to Job SCMs; breaks changes view

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 2.147
      Pipeline: Shared Groovy Libraries 2.12

      We are at the moment migrating our Source from RTC (Jazz CCM) SCM to Git and while our Global (trusted) Shared Library is still in RTC, there are already some Jobs that use Git (Multibranch Pipeline using GitHub Folder). The GitHub folder has an additional (untrusted) library from Git SCM, but that is not the problem here.

      Unfortunatley the Checkout of the Global Library from RTC seems to add RTC SCM to the Jobs/Builds used SCMs, which breaks the "Changes" view of the job, because there are multiple SCMs (Git and RTC) in use.

      For the Global Library from RTC the "Include @Library Changes in Changes" is unset, so I expected the Changes view not to break. I am not sure, but I suspect that if we move the Global Library from RTC to Git, the Changes view of (all!) the jobs that at the moment still use RTC SCM would break.

      I am happy to help fixing this, but I did not find the place where the SCM is added to the Build. (The deepest I got was to the following class, but I didn't get any further nor am I sure whethere I am in the right place: https://github.com/jenkinsci/workflow-cps-global-lib-plugin/blob/master/src/main/java/org/jenkinsci/plugins/workflow/libs/SCMSourceRetriever.java#L147)

            Unassigned Unassigned
            ciis0 Christoph Schulz
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: