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

Multibranch pipeline with SCM browser does not have SCM links

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • Jenkins 2.8
      Ubuntu Server 14.04

      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)

          [JENKINS-35483] Multibranch pipeline with SCM browser does not have SCM links

            Unassigned Unassigned
            szhem Sergey Zhemzhitsky
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: