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

Blue Ocean does not allow us to list Bitbucket repositories

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • blueocean-plugin
    • None

      Blue Ocean does not allow us to list Bitbucket repositories:

      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.getDefaultBranch(BitbucketCloudApi.java:249)
      at io.jenkins.blueocean.blueocean_bitbucket_pipeline.model.BbRepo.toScmRepository(BbRepo.java:63)
      at io.jenkins.blueocean.blueocean_bitbucket_pipeline.BitbucketRepositoryContainer$BitbucketRepositories.<init>(BitbucketRepositoryContainer.java:82)
      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

        1. bitbucket-incident.png
          bitbucket-incident.png
          19 kB
        2. BlueOceanVersion.png
          BlueOceanVersion.png
          6 kB
        3. Jenkins Version.png
          Jenkins Version.png
          1 kB
        4. The last commit.png
          The last commit.png
          75 kB
        5. Eternal Loading.....png
          Eternal Loading.....png
          49 kB

          [JENKINS-59092] Blue Ocean does not allow us to list Bitbucket repositories

          Gavin Mogan added a comment -

          Can you confirm/post which versions of jenkins and blueocean you are using.

          I'm re-assigning it to Jeremy for now as his team are the main maintainers.

          Gavin Mogan added a comment - Can you confirm/post which versions of jenkins and blueocean you are using. I'm re-assigning it to Jeremy for now as his team are the main maintainers.

          halkeye and jhartley,
          Please find attached  jenkins and blueocean versions.
          And also down here:

          Jenkins 2.176.2

          Blue Ocean 1.18.1

          Thanks!!

          Marcello Ribeiro added a comment - halkeye and jhartley , Please find attached  jenkins and blueocean versions. And also down here: Jenkins 2.176.2 Blue Ocean 1.18.1 Thanks!!

          Gavin Mogan added a comment -

          The fact that you are seeing the orgs, but not the repos is kinda confusing to me. It means you can connect just fine, and the credentials work.

          I just tested master, and i can pull the list of repos without issue (in both org and personal)

          Does it only happen for a single org? or the same for both org and personal account? (Looking at Eternal Loading.png) Is it possible there's a repo with some really weird characters or something?

          I certainly can't reproduce it locally.

           

          Gavin Mogan added a comment - The fact that you are seeing the orgs, but not the repos is kinda confusing to me. It means you can connect just fine, and the credentials work. I just tested master, and i can pull the list of repos without issue (in both org and personal) Does it only happen for a single org? or the same for both org and personal account? (Looking at Eternal Loading.png) Is it possible there's a repo with some really weird characters or something? I certainly can't reproduce it locally.  

          Gavin Mogan added a comment -

          so seeing your new screenshot is it fixed now?

          We still need more info cause its not reproduce able.

          Feel free to add https://bitbucket.org/cb-gavinmogan/ to the repo in question so i can debug things, but I suspect you have sensitive items in there.

           

          Feel free to add

          Gavin Mogan added a comment - so seeing your new screenshot is it fixed now? We still need more info cause its not reproduce able. Feel free to add https://bitbucket.org/cb-gavinmogan/ to the repo in question so i can debug things, but I suspect you have sensitive items in there.   Feel free to add

          I am not certain about root case but i´ve just got a Bitbucket incident by their side and just after that the problem looks like solved also i my Blue Ocean. Now it takes some seconds and the list of repos come normally from Bitbucket API.

          I will spend some hour of testing and restesting before close the issue...

          Have my appologies because once it throwed an exception in BlueOcean i decided to open this issue and now i sounds like a Bitbucket incident...

          If could suggest anything, i would say for having any message in the stacktrace pointing the finger for Bitbucket.

          Marcello Ribeiro added a comment - I am not certain about root case but i´ve just got a Bitbucket incident by their side and just after that the problem looks like solved also i my Blue Ocean. Now it takes some seconds and the list of repos come normally from Bitbucket API. I will spend some hour of testing and restesting before close the issue... Have my appologies because once it throwed an exception in BlueOcean i decided to open this issue and now i sounds like a Bitbucket incident... If could suggest anything, i would say for having any message in the stacktrace pointing the finger for Bitbucket.

          I´ve posted  the incident response from Bitbucket team

           it is up here as an attached image

          Marcello Ribeiro added a comment - I´ve posted  the incident response from Bitbucket team  it is up here as an attached image

          ahh thanks for your prompt attention on it

          Marcello Ribeiro added a comment - ahh thanks for your prompt attention on it

          Thanks halkeye for helping work with the customer to resolve this.

           

          Jeremy Hartley added a comment - Thanks halkeye for helping work with the customer to resolve this.  

          This turned out not to be an issue

          Jeremy Hartley added a comment - This turned out not to be an issue

          halkeye, as i said i´ve spent some time tested the issue, once it is intermitent and yesterday it seemed to be ok, but today it raised up again.
          Same enviroment, same Bitbucket username/password.
          One new information is: If i restart Jenkins process it runs ok by the first time.
          I am recording a video with issue.

          Marcello Ribeiro added a comment - halkeye , as i said i´ve spent some time tested the issue, once it is intermitent and yesterday it seemed to be ok, but today it raised up again. Same enviroment, same Bitbucket username/password. One new information is: If i restart Jenkins process it runs ok by the first time. I am recording a video with issue.

          Gavin Mogan added a comment - - edited

          marcello_ribeiro so I'm kinda at the limit I can do as an OSS contributor since I can't reproduce it. Also you have a kinda crappy work around so its not highest priority.

           

          My suggestion is to try to get as much information as you can prepareted, then try out the 30 minutes free cloudbees support and see if they can raise a ticket internally to get more traction on it - https://www.cloudbees.com/go/jenkins-support-ama

          Gavin Mogan added a comment - - edited marcello_ribeiro so I'm kinda at the limit I can do as an OSS contributor since I can't reproduce it. Also you have a kinda crappy work around so its not highest priority.   My suggestion is to try to get as much information as you can prepareted, then try out the 30 minutes free cloudbees support and see if they can raise a ticket internally to get more traction on it -  https://www.cloudbees.com/go/jenkins-support-ama

          Marcello Ribeiro added a comment - - edited

          jhartley, I don´t know if you could reopen that issue, once i have a detailled video with the issue evidence and its behaviour...

          It only happens after second time we try listing the repos. (Exception is thrown every times, but the eternal "loading..." message happens only when you navigate any other Jenkins screens, you come back to pipeline creation screen and try it again)

          Marcello Ribeiro added a comment - - edited jhartley , I don´t know if you could reopen that issue, once i have a detailled video with the issue evidence and its behaviour... It only happens after second time we try listing the repos. (Exception is thrown every times, but the eternal "loading..." message happens only when you navigate any other Jenkins screens, you come back to pipeline creation screen and try it again)

          halkeye thanks for you suggestion and i´ll try it as you said.

          Its is no clear about what you mean with a "crappy work around". Can you please clear that?

          Marcello Ribeiro added a comment - halkeye thanks for you suggestion and i´ll try it as you said. Its is no clear about what you mean with a "crappy work around". Can you please clear that?

          Gavin Mogan added a comment -

          oh I didn't read the message fully, I thought you said it would only break on the second time doing it, was fine after restart. No work around sorry.

          I think you'll have better luck with the classic UI

          Gavin Mogan added a comment - oh I didn't read the message fully, I thought you said it would only break on the second time doing it, was fine after restart. No work around sorry. I think you'll have better luck with the classic UI

          Jimmy added a comment -

          i think is repository too much make cannot access, because i tried use other account is work, i have this problem too in docker  

          Jimmy added a comment - i think is repository too much make cannot access, because i tried use other account is work, i have this problem too in docker  

          Jimmy added a comment -

          api calling is 404 and fetch

          Jimmy added a comment - api calling is 404 and fetch

            jhartley Jeremy Hartley
            marcello_ribeiro Marcello Ribeiro
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: