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

Multibranch pipeline displays SCM views multiple times

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: