I need to use the "checkout" step in my Jenkins Pipeline to generate the Repository Browser Links for my changeset to point to Bitbucket (hosted).
The Source looks like
checkout([$class: 'GitSCM', branches: [[name: '*/master']],
userRemoteConfigs: [[url: 'ssh://git@myhostedbitbucket/myProject/myRepo.git']],
browser: [$class: 'BitbucketWeb', repoUrl: 'https://myhostedbitbucket/projects/myProject/repos/myRepo']]
The Problem seems to be, that "BitbucketWeb" works as expected for bitbucket.org but not for on premise Bitbucket Instances.
The Difference is, that bitbucket.org has a "history" Page, where you can find an overview of the history of a file.
This Page does not exist at on premise Bitbucket Servers. There you only have an overview Page for the source-File with a dropdown to show and select different Changesets ("history")