Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57859

Creating new pipeline from Bitbucket cloud hangs fetching repos

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: blueocean-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.164.3
      io.jenkins.blueocean:blueocean-bitbucket-pipeline:1.16.0
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              matthew_russell Matt Russell
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: