[JIRA] (JENKINS-38820) Internal Server Error from BitBucket when attempting to index branches

45 views
Skip to first unread message

mccoy.jordan@gmail.com (JIRA)

unread,
Oct 7, 2016, 10:00:15 AM10/7/16
to jenkinsc...@googlegroups.com
Jordan McCoy created an issue
 
Jenkins / Bug JENKINS-38820
Internal Server Error from BitBucket when attempting to index branches
Issue Type: Bug Bug
Assignee: Antonio Muñiz
Components: bitbucket-branch-source-plugin
Created: 2016/Oct/07 1:59 PM
Environment: Jenkins 2.19.1, bitbucket-branch-source-plugin 1.8
Priority: Major Major
Reporter: Jordan McCoy

After configuring a new multibranch pipeline job with a bitbucket branch source targeting bitbucket cloud, branch indexing returns this error:

Started
Connecting to https://bitbucket.org using jor...@rigup.com/******
Looking up rigup/rigup-build for branches
FATAL: Failed to recompute children of RigUp Main Build
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: 500: INTERNAL SERVER ERROR.
{"error": {"message": "Internal server error", "id": "66ccda07d9d24c928c6f554c39022eb8"}}
	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:432)
	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getBranches(BitbucketCloudApiClient.java:225)
	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieveBranches(BitbucketSCMSource.java:323)
	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:279)
	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:148)
	at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:294)
	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157)
	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:404)
Finished: FAILURE

The plugin is successfully authenticating with bitbucket, as the webhook is registered for the target repository.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

digimarc@gmail.com (JIRA)

unread,
Jan 18, 2017, 6:16:02 PM1/18/17
to jenkinsc...@googlegroups.com
Marcus Bertrand commented on Bug JENKINS-38820
 
Re: Internal Server Error from BitBucket when attempting to index branches

Hi all,

I work on the Bitbucket Cloud dev team and am working a similar sounding case with our support team. Looking at the plugin, I can see that it is still using Bitbucket Cloud's very outdated, and deprecated, 1.0 API endpoint for listing branches. The 1.0 API tries to include a diff stat with every branch, causing repositories with a lot of branches & tags (yes, and tags) to hit Bitbucket Cloud's internal timeouts for API performance.

To resolve this issue, the plugin should switch to using the more modern 2.0 API for gathering branch information. The endpoint for getting branch refs is

Cheers,
Marcus Bertrand

Reply all
Reply to author
Forward
0 new messages