jenkinsci/bitbucket-branch-source-plugin

Error while loading repositories from cache

mamidala86 opened this issue · 4 comments

Your checklist for this issue

  • Jenkins version - 2.289.3

  • Plugin version - 762.v969cfe087fc0

  • Bitbucket cloud - Yes

  • Bitbucket server and version

Description

Please describe your issue here.

Getting an message as " error while loading repositories from cache" under repositories section when filled in owner.

Me too.

  • Jenkins version - 2.332.3
  • Plugin version - 773.v4b_9b_005b_562b_
  • Bitbucket cloud - Yes
  • Bitbucket server and version - Cloud version as of 2022-06-22

There's no indication of whether the app password is being sent correctly, or a way to reproduce the error with curl (with password blanked out). Tcpdump does show a TLS connection being established with api.bitbucket.org, so at least that works.

Also encountering this issue on Jenkins 2.346.2

Also encountering this issue on Jenkins: 2.346.3, plugin version: 791.vb_eea_a_476405b

I fixed my problem after an extensive chat with Bitbucket tech support; it turns out the username to use is the username of the account, not the API key label, which is only used for logging purposes.

They will be updating the Bitbucket online documentation to spell that out more clearly, so that's good.

The bitbucket branch source plugin could still be improved a bit, by displaying the username being sent and the error message coming back, and/or showing the request as a curl command that has the password blanked out. That would have really shortened the troubleshooting, by immediately ruling out Jenkins as the source of the problem. :-)

Thanks!