jenkinsci / jenkinsci/git-plugin

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

Open
#2,878 5 comments 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

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)

---
Originally reported by szhem, imported from: Multibranch pipeline with SCM browser does not have SCM links


  • status: Open
  • priority: Minor
  • component(s): git-plugin
  • label(s): multibranch
  • resolution: Unresolved
  • votes: 4
  • watchers: 5
  • imported: 2025-12-02

Raw content of original issue

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)

environment

```
Jenkins 2.8

Ubuntu Server 14.04
```

2 attachments

- [multibranch-scm-links.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-misc/refs/heads/main/attachments/32950/multibranch-scm-links.png)
> ![multibranch-scm-links.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-misc/refs/heads/main/attachments/32950/multibranch-scm-links.png)
- [multibranch-scm-nolinks.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-last/refs/heads/main/attachments/32949/multibranch-scm-nolinks.png)
> ![multibranch-scm-nolinks.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-last/refs/heads/main/attachments/32949/multibranch-scm-nolinks.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.