[JIRA] (JENKINS-57859) Creating new pipeline from Bitbucket cloud hangs fetching repos

2 views
Skip to first unread message

matthew.russell@sonocent.com (JIRA)

unread,
Jun 5, 2019, 9:49:02 AM6/5/19
to jenkinsc...@googlegroups.com
Matt Russell created an issue
 
Jenkins / Bug JENKINS-57859
Creating new pipeline from Bitbucket cloud hangs fetching repos
Issue Type: Bug Bug
Assignee: Unassigned
Components: blueocean-plugin
Created: 2019-06-05 13:48
Environment: Jenkins 2.164.3
io.jenkins.blueocean:blueocean-bitbucket-pipeline:1.16.0
Priority: Major Major
Reporter: Matt Russell

Having a problem configuring our Jenkins to connect to Bitbucket Cloud:

1. Attempt to create a pipeline in Blue Ocean (https://$JENKINS/blue/create-pipeline)
2. Select Bitbucket Cloud, and provide credentials
3. Answer question "Which team does the repository belong to?"
Expected behaviour: repositories from team are returned
Actual behaviour: UI hangs indefinitely saying "Loading..."
In the logs, the following exception is recorded:

WARNING: Failed to get "repositories" from a io.jenkins.blueocean.blueocean_bitbucket_pipeline.BitbucketRepositoryContainer
java.lang.reflect.InvocationTargetException
...
Caused by: io.jenkins.blueocean.commons.ServiceException: Unknown Status Code
	at io.jenkins.blueocean.blueocean_bitbucket_pipeline.HttpResponse.getContent(HttpResponse.java:71)
	at io.jenkins.blueocean.blueocean_bitbucket_pipeline.cloud.BitbucketCloudApi.getRepos(BitbucketCloudApi.java:161)
	at io.jenkins.blueocean.blueocean_bitbucket_pipeline.BitbucketRepositoryContainer$BitbucketRepositories.<init>(BitbucketRepositoryContainer.java:80)
	at io.jenkins.blueocean.blueocean_bitbucket_pipeline.BitbucketRepositoryContainer.getRepositories(BitbucketRepositoryContainer.java:41)
	at io.jenkins.blueocean.commons.stapler.export.MethodProperty.getValue(MethodProperty.java:72)
	... 120 more

We're confident that the credentials provided are correct, and we managed to use this method to connect to Bitbucket successfully last week.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages