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

Multibranch pipeline displays SCM views multiple times

      When using extended SCM configuration with multibranch pipeline plugin then SCM views, all the links and revision info is shown twice on the build view.

      Here is the SCM configuration

      def teamName = 'team'
      def repoName = 'repo'
      
      stage 'Checkout'
      checkout([
          $class: 'GitSCM',
          branches: [[name: env.BRANCH_NAME]],
          browser: [
              $class: 'BitbucketWeb',
              repoUrl: "https://bitbucket.org/${teamName}/${repoName}.git"
          ],
          doGenerateSubmoduleConfigurations: false,
          extensions: [[$class: 'CleanBeforeCheckout']],
          submoduleCfg: [],
          userRemoteConfigs: [[
              credentialsId: 'jenkins_bitbucket_ssh',
              name: 'origin',
              url: "git@bitbucket.org:${teamName}/${repoName}.git"
          ]]
      ])
      

      ... and for the provided configuration all the SCM info is duplicated as shown in the provided attachment scm_extended_dups.png.

      If using the configuration as the following one

      stage 'Checkout'
      checkout scm
      

      ... then SMC information is displayed only once (scm_simple.png) as expected.

          [JENKINS-35475] Multibranch pipeline displays SCM views multiple times

          Sergey Zhemzhitsky created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 171775 ] New: JNJira + In-Review [ 184466 ]
          Jesse Glick made changes -
          Component/s New: git-plugin [ 15543 ]
          Component/s Original: workflow-multibranch-plugin [ 21465 ]
          Assignee Original: Manuel Recena Soto [ recena ]
          Labels New: multibranch
          Stephen Connolly made changes -
          Labels Original: multibranch New: multibranch scm-api-tidy-scrub
          Stephen Connolly made changes -
          Labels Original: multibranch scm-api-tidy-scrub New: multibranch scm-api-tidy
          Stephen Connolly made changes -
          Link New: This issue relates to JENKINS-41830 [ JENKINS-41830 ]
          Stephen Connolly made changes -
          Assignee New: Stephen Connolly [ stephenconnolly ]
          Stephen Connolly made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Stephen Connolly made changes -
          Remote Link New: This issue links to "PR#484 (Web Link)" [ 15643 ]
          Stephen Connolly made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Stephen Connolly made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]

            stephenconnolly Stephen Connolly
            szhem Sergey Zhemzhitsky
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: