This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      Multibranch pipeline jobs do not have links to SCM commits and diffs (multibranch-scm-nolinks.png) even if the corresponding SCM browser is configured like the following

      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"
          ]]
      ])
      

      ... although ordinary jobs do have (multibranch-scm-links.png)

        1. multibranch-scm-links.png
          60 kB
          Sergey Zhemzhitsky
        2. multibranch-scm-nolinks.png
          66 kB
          Sergey Zhemzhitsky

            Assignee:
            Unassigned
            Reporter:
            Sergey Zhemzhitsky
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: