bitbucket-branch-source-plugin icon indicating copy to clipboard operation
bitbucket-branch-source-plugin copied to clipboard

Use new build status API of Bitbucket Server 7.4

Open KalleOlaviNiemitalo opened this issue 3 years ago • 1 comments

What feature do you want to see added?

Use the new build status API that was added in Bitbucket Server 7.4. It differs from the old API in the following ways:

Upstream changes

KalleOlaviNiemitalo avatar Jul 21 '22 13:07 KalleOlaviNiemitalo

According to https://github.com/jenkinsci/atlassian-bitbucket-server-integration-plugin/pull/401#issuecomment-1613889355, the newer API also takes the Git ref name as a parameter, and Bitbucket uses that for deciding whether to show the build status in a pull request. Furthermore, if the source branch of a pull request is used as this ref, then the build status must be posted to the source repository of the pull request, not to the target repository.

KalleOlaviNiemitalo avatar Jul 03 '23 06:07 KalleOlaviNiemitalo