question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bitbucket Teams API Depreciated

See original GitHub issue

Version 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

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:closed
  • Created 2 years ago
  • Reactions:49
  • Comments:36 (3 by maintainers)

github_iconTop GitHub Comments

21reactions
pitkleycommented, Aug 26, 2021

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:

  • Clone the repository above and check out the branch.
  • Run mvn hpi:hpi
  • Upload the generated plugin from target/cloudbees-bitbucket-branch-source.hpi in the advanced section in the plugin-configuration in Jenkins.
  • Restart Jenkins.
  • Rerun the job discovery.

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.

12reactions
alwestocommented, Aug 26, 2021

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found