Bitbucket Teams API Depreciated
See original GitHub issueVersion report
Jenkins and plugins versions report:
2.9.10
- What Operating System are you using (both controller, and any agents involved in the problem)?
Jenkins Docker
Reproduction steps
- According https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-teams-deprecation/ the teams API has changed to workspace. This results in the organization scan not working anymore
- See https://github.com/jenkinsci/bitbucket-branch-source-plugin/blob/master/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/client/BitbucketCloudApiClient.java#L131
- To reproduce, create new item of type “Bitbucket Team/Project”
- Scan Organization Folder
Results
Expected result:
Scanned Repositories
Actual result:
[Thu Aug 26 07:45:00 CEST 2021] Consulting Bitbucket Team/Project Connecting to https://bitbucket.org using User for Bitbucket access Looking up repositories of user XXXXX 0 repositories were processed
Issue Analytics
- State:
- Created 2 years ago
- Reactions:49
- Comments:36 (3 by maintainers)
Top Results From Across the Web
Why is Bitbucket making this change? - Atlassian Developer
This deprecation notice details the steps you can take to update your integration and ensure a smooth transition to the workspaces-based API ......
Read more >Bitbucket teams API deprecation - CircleCI Discuss
Earlier this year, Atlassian announced that it has deprecated a number of Bitbucket API endpoints and response payloads.
Read more >Depreciation of BitbucketCloud teams and users endpoints
The /2.0/users and /2.0/teams endpoints are being deprecated but not the /2.0/user , so there is a probability that the current BitbucketCloud ...
Read more >atlassianlabs / atlascode / issues / #745 - Error on ... - Bitbucket
This happens with the whole name of an added user, the email and parts of the name. As the api endpoint for /teams...
Read more >Bitbucket /teams/ endpoints are deprecated - Jenkins Jira
As of 12/16/2021 it appears that the https://api.bitbucket.org/2.0/teams?role= endpoint that is used to fetch group memberships has ceased ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The following branch contains a fix that seems to be working for us: https://github.com/KKEU/bitbucket-branch-source-plugin/tree/hotfix/bitbucket-deprecation.
To apply this fix to your environment, do the following:
mvn hpi:hpi
target/cloudbees-bitbucket-branch-source.hpi
in the advanced section in the plugin-configuration in Jenkins.HTH.
USE ANY OF THIS AT YOUR OWN RISK! The changes made are in accordance with the MIT license, and thus neither me nor my employer give any guarantees about the correctness of these patches, or can be held liable for any damages caused by using them.
Thank you for the hotfix @pitkley much appreciated.
Compiled plugin is hosted here using the build steps above: https://jenkins-bitbucket-fix.s3.eu-west-1.amazonaws.com/cloudbees-bitbucket-branch-source.hpi
Please do your standard AV checks etc…