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

Internal Server Error from Bitbucket when attempting to index branches

    XMLWordPrintable

Details

    Description

      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 jordan@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.

      Attachments

        Issue Links

          Activity

            mccoyjordan Jordan McCoy created issue -
            mbertrand80 Marcus Bertrand made changes -
            Field Original Value New Value
            Summary Internal Server Error from BitBucket when attempting to index branches Internal Server Error from Bitbucket when attempting to index branches
            jamesdumay James Dumay made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            jamesdumay James Dumay made changes -
            Labels technical-debt
            jamesdumay James Dumay made changes -
            Labels technical-debt cloudbees-internal-pipeline technical-debt
            jamesdumay James Dumay made changes -
            Link This issue duplicates JENKINS-45497 [ JENKINS-45497 ]
            jamesdumay James Dumay made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]

            People

              amuniz Antonio Muñiz
              mccoyjordan Jordan McCoy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: