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

Multibranch pipeline displays SCM views multiple times

    XMLWordPrintable

    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

            Hide
            bsipos Brian Sipos added a comment -

            I think I see the same issue but due to different config. I use SVN as repository and have a multibranch-detected Jenkinsfile with a simple "checkout scm" step that also shows up with duplicated job change entries (exactly two as seen in this original ticket). I can attach screenshot of my views if it helps.

            Show
            bsipos Brian Sipos added a comment - I think I see the same issue but due to different config. I use SVN as repository and have a multibranch-detected Jenkinsfile with a simple "checkout scm" step that also shows up with duplicated job change entries (exactly two as seen in this original ticket). I can attach screenshot of my views if it helps.
            Hide
            zswanson Zach Swanson added a comment -

            Same problem. I suspect that this is due to the 'checkout scm' step being run on the master node, where the multibranch indexing is occurring - as noted in JENKINS-33273

            Show
            zswanson Zach Swanson added a comment - Same problem. I suspect that this is due to the 'checkout scm' step being run on the master node, where the multibranch indexing is occurring - as noted in JENKINS-33273
            Hide
            jglick Jesse Glick added a comment -

            Pretty sure this is a duplicate.

            Show
            jglick Jesse Glick added a comment - Pretty sure this is a duplicate.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/main/java/hudson/plugins/git/GitSCM.java
            src/main/java/hudson/plugins/git/util/BuildData.java
            src/main/resources/hudson/plugins/git/util/BuildData/index.jelly
            http://jenkins-ci.org/commit/git-plugin/b8f94dfed07e996e87dff4f27615bc82ff8103c3
            Log:
            [FIXED JENKINS-35475] Relax build data present check to allow for different remote names

            • Also fix side-panel on BuildData
            • Also make it possible to access the multiple BuildData actions
            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/hudson/plugins/git/GitSCM.java src/main/java/hudson/plugins/git/util/BuildData.java src/main/resources/hudson/plugins/git/util/BuildData/index.jelly http://jenkins-ci.org/commit/git-plugin/b8f94dfed07e996e87dff4f27615bc82ff8103c3 Log: [FIXED JENKINS-35475] Relax build data present check to allow for different remote names Also fix side-panel on BuildData Also make it possible to access the multiple BuildData actions
            Hide
            stephenconnolly Stephen Connolly added a comment -

            Merged and will be in the next release

            Show
            stephenconnolly Stephen Connolly added a comment - Merged and will be in the next release
            Hide
            markewaite Mark Waite added a comment -

            Included in git plugin 3.2.0 released 28 mar 2017

            Show
            markewaite Mark Waite added a comment - Included in git plugin 3.2.0 released 28 mar 2017

              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: