Status: Closed (View Workflow)
Using Git Plugin 3.0.0 the following Link is generated for Source-File-Changes using BitbucketWeb:
Link leads to 404 - correct would be
"history" was dedected hardcoded in
- relates to
JENKINS-67066 Each commit in "Changes" links to "stash" rather than "bitbucketserver"
- links to
PR #1071 was included in Git Plugin 4.7.2 and presumably fixes this. markewaite, can this issue be closed now?
Bitbucket Server is the current name of the software that used to be called Stash. There are a few differences between BitbucketServer.java and Stash.java:
- BitbucketServer.getDiffLink links to the per-commit page and selects the file from there, while Stash.getDiffLink links to the per-file page and selects the diff from there. OK, perhaps the per-commit page is better for showing that a file was renamed or deleted.
- BitbucketServer.getFileLink does not add the commit ID as an "at" query parameter. That seems bad.
- getDisplayName() of the descriptor returns "bitbucketserver" vs. "stash". OK.
In general, you shouldn't test against Bitbucket Cloud if you want to know how things work in Bitbucket Data Center and Server. Although the names are confusingly similar, they are separate implementations in different programming languages.
Thanks for detecting that this issue can be closed kon. Much appreciated!
It has been a couple of years, so I don't know if this was the original cause of the problem. However, I contacted Atlassian/Bitbucket and was able to confirm that this behavior is related to the "New Source Browser Experience". When I disabled this feature (in the Bitbucket Labs page of my accounts settings), I was able to see the expected commit history of the specific file.
It also appears that this is NOT the desired effect of the New Source Browser Experience. So I am expecting some time in the future, this will be fixed in Bitbucket and we will not need to disable New Source Browser Experience in order for this history link to work.