Bitbucket Jenkins plugin cannot locate Bitbucket Cloud repositories
Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.
Summary
Jenkins integrated with Bitbucket Cloud via Bitbucket branch source plugin is not loading the repositories.
Caused: java.io.IOException: Error while loading repositories from cacheCause
The common reason for the repositories not loading is related to authentication. As per this page, basic authentication (Atlassian account password) has been deprecated for Bitbucket API and Git activity. Please also note that app passwords are also being deprecated.
Solution
For the integration via Bitbucket Jenkins plugin to work, kindly ensure that these parameters are satisfied:
For users using multiple workspaces, ensure that the user being used for authentication has sufficient access to the specific workspace to which the integration is being done.
Ensure that you are using the Atlassian account email of the Bitbucket user used for integration as Username. Public Name or Bitbucket username will not be accepted.
In the Password field, use an API token for the Bitbucket user used for integration.
Was this helpful?