Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
* Product Solution: CloudBees Jenkins Team
* Product Version: 2.121.1.2
* bitbucket:1.1.8 'Jenkins Bitbucket Plugin'
* cloudbees-bitbucket-branch-source:2.2.9 'Bitbucket Branch Source Plugin'
Description
In a Multibranch Pipeline project when I add Bitbucket as a Branch Source, give it the correct Credentials and Owner, the repo that I just gave read access does not show up in the Repository Name list until I restart the CJT service.
This is probably a side effect to the cache introduced in 2.2.9.
The can not be disabled for now, but it will be in the next release (as soon as
JENKINS-50314is released). Meanwhile the workaround is to clean the cache manually from the script console by running this snippet:import com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient; BitbucketCloudApiClient.cachedTeam.evictAll(); BitbucketCloudApiClient.cachedRepositories.evictAll();