We are using Bitbucket Source Plugin installed on my Jenkins instance and created Multi Branch Configurations.
Configured as per the documentation.
Step 1 : Configured or enabled Webhooks in manage jenkins
Step 2: created multi branch pipeline job and add bitbucket source.
Step 3: add credentials(Apppassword) which created under bitbucket
Step 4: Added owner(username) then pressed tab which is unable to load repositories and throwing 500 internale error.
Exception from jenkins logs:
Aug 21, 2023 5:43:44 AM SEVERE com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource$DescriptorImpl doFillRepositoryItems
Error while loading repositories from cache
java.io.FileNotFoundException: URL: https://api.bitbucket.org/2.0/repositories/bharathtbr?role=contributor&page=1&pagelen=100
at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequestAsInputStream(BitbucketCloudApiClient.java:947)
at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:967)
at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.lambda$getRepositories$3(BitbucketCloudApiClient.java:809)
at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRepositories(BitbucketCloudApiClient.java:825)

