Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket Branch Source plugin Jenkins giving 500 Status Code

Chaitanya Chennareddygari
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 20, 2023

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)

 

bitbucket1.pngbitbucket2.png

2 answers

0 votes
Christian Magalhaes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 3, 2023

Hi @Chaitanya Chennareddygari , did you sort out your issue?

 if so, could you please share what you have done to get it sorted?

 

I have same behaviour in my Jenkins server.

0 votes
Norbert C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 22, 2023

Hi Chaitanya,

Welcome to the Atlassian Community! My name is Norbert and it's nice to meet with you.

Looking at this behavior it seems that your Jenkins instance is rejecting the changes and it replies with a HTTP 500 error.

Unfortunately we at Atlassian are not familiar with Jenkins or its plugins as it wasn't developed by us. As a suggestion I'd like to recommend you to reach out to Jenkins Support for this behavior.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events