Bitbucket Jenkins plugin cannot locate Bitbucket Cloud repositories

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

Jenkins integrated with Bitbucket Cloud via Bitbucket branch source plugin is not loading the repositories.

1 Caused: java.io.IOException: Error while loading repositories from cache

Cause

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.

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 username of the Bitbucket user used for integration. Public Name will not be accepted.

  • Use App Password for authentication.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.