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

Multibranch pipeline displays SCM views multiple times

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: