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

Blue Ocean does not allow us to list Bitbucket repositories

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • blueocean-plugin
    • None
    • Blue Ocean - Candidates

      somthing like JENKINS-59092

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

          Jimmy added a comment -

          i think is this month happened? have something update in this month?

          Jimmy added a comment - i think is this month happened? have something update in this month?

          Kalle Niemitalo added a comment - - edited

          This may have been caused by https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/473. If so, updating the Bitbucket Branch Source plugin to 2.9.11 should fix it.

          Kalle Niemitalo added a comment - - edited This may have been caused by https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/473 . If so, updating the Bitbucket Branch Source plugin to 2.9.11 should fix it.

          Jimmy added a comment -

          yes, have new update is 2.9.11, i updated it but have same issues 

          Jimmy added a comment - yes, have new update is 2.9.11, i updated it but have same issues 

          Thomas Ramé added a comment -

          jimmy1998 kon I can confirm the `v2.9.11` fixes the issue in the default Jenkins interface, but when adding a new pipeline through Blue Ocean the error still exist.

          I guess something needs to be updated on the Blue Ocean side too?

          Thomas Ramé added a comment - jimmy1998 kon  I can confirm the `v2.9.11` fixes the issue in the default Jenkins interface, but when adding a new pipeline through Blue Ocean the error still exist. I guess something needs to be updated on the Blue Ocean side too?

          Can anyone provide detailed logs about the error?

          Kalle Niemitalo added a comment - Can anyone provide detailed logs about the error?

          Kalle Niemitalo added a comment - - edited

          Kalle Niemitalo added a comment - - edited The blueocean-bitbucket-pipeline plugin still uses “teams” URLs, at least here: https://github.com/jenkinsci/blueocean-plugin/blob/239e00a4577564b37ac7bd1b7c90d25a71937c3f/blueocean-bitbucket-pipeline/src/main/java/io/jenkins/blueocean/blueocean_bitbucket_pipeline/cloud/BitbucketCloudApi.java#L105 https://github.com/jenkinsci/blueocean-plugin/blob/239e00a4577564b37ac7bd1b7c90d25a71937c3f/blueocean-bitbucket-pipeline/src/main/java/io/jenkins/blueocean/blueocean_bitbucket_pipeline/cloud/BitbucketCloudApi.java#L137 So these have to be changed to “workspaces”. Perhaps references to “owner” have to be changed as well. I don’t intend to work on that.

          Jimmy added a comment -

          i tried to reinstall Blue Ocean, but have same issues

          Jimmy added a comment - i tried to reinstall Blue Ocean, but have same issues

          Jimmy added a comment -

          Jimmy added a comment - http://*MYIP*/blue/rest/organizations/jenkins/scm/bitbucket-cloud/organizations/%**%*D/repositories/?credentialId=bitbucket-cloud&pageNumber=1&pageSize=100&apiUrl=[https://bitbucket.org |https://bitbucket.org/] { "message" : "Not Found", "code" : 404, "errors" : [ ] }

          jimmy1998, I was hoping to see a Jenkins stack trace. However, it is now clear that the problem is indeed in blueocean-bitbucket-pipeline and has to be fixed there.

          So far, I don't see any such fix in https://github.com/jenkinsci/blueocean-plugin/pulls and I don't know whether anybody is working on it. (PR #2196 will not help; it upgrades the build-time cloudbees-bitbucket-branch-source dependency to 2.9.11, but if you have installed that version, then it is used at run time anyway, even without this PR.)

          Until there is a fix, you can perhaps work around the issue by using the older Jenkins user interface instead of Blue Ocean.

          Kalle Niemitalo added a comment - jimmy1998 , I was hoping to see a Jenkins stack trace. However, it is now clear that the problem is indeed in blueocean-bitbucket-pipeline and has to be fixed there. So far, I don't see any such fix in https://github.com/jenkinsci/blueocean-plugin/pulls and I don't know whether anybody is working on it. ( PR #2196 will not help; it upgrades the build-time cloudbees-bitbucket-branch-source dependency to 2.9.11, but if you have installed that version, then it is used at run time anyway, even without this PR.) Until there is a fix, you can perhaps work around the issue by using the older Jenkins user interface instead of Blue Ocean.

          Jimmy added a comment -

          ok, thanks

          Jimmy added a comment - ok, thanks

            Unassigned Unassigned
            jimmy1998 Jimmy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: