Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitbucket build-status API Deprecated #778

Open
rickemch opened this issue Oct 24, 2023 · 1 comment
Open

Bitbucket build-status API Deprecated #778

rickemch opened this issue Oct 24, 2023 · 1 comment
Labels

Comments

@rickemch
Copy link

Jenkins and plugins versions report

Per https://community.atlassian.com/t5/Bitbucket-questions/Why-is-the-required-builds-merge-check-still-failing-after-a/qaq-p/2230801 , the Bitbucket REST API /rest/api/1.0/build-status/latest/commits/{commitId} is deprecated. It does not work to mark a specific Jenkins build in Bitbucket. This results in "Required Builds" in Bitbucket never being marked as passed.

The Branch Source Plugin needs to be updated to use the new Bitbucket API: /rest/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/builds

What Operating System are you using (both controller, and any agents involved in the problem)?

N/A

Reproduction steps

Enable Required Builds in Bitbucket for a Jenkins multibranch pipeline job.
Pass the Jenkins multibranch pipeline job.
Verify that Required Builds in Bitbucket still indicates needing a pass on the multibranch pipeline job for the commit.

Expected Results

Required Builds in Bitbucket is satisfied by a pass on the Jenkins multibranch pipeline job for the commit.

Actual Results

Required Builds in Bitbucket still indicates needing a pass on the multibranch pipeline job for the commit.

Anything else?

No response

@rickemch rickemch added the bug label Oct 24, 2023
@KalleOlaviNiemitalo
Copy link
Contributor

This seems a duplicate of #621 but provides an additional justification for the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants