Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Bitbucket API changed #107

Open
lukaszun opened this issue Jun 12, 2019 · 12 comments
Open

Bitbucket API changed #107

lukaszun opened this issue Jun 12, 2019 · 12 comments

Comments

@lukaszun
Copy link

From yesterday integration with bitbucket is not working. In logs we can see:

ERROR: Error during SonarQube Scanner execution
08:34:06 ERROR: POST https://api.bitbucket.org/1.0/repositories/XXXXX/pullrequests/922/comments returned a response status of 410 Gone
08:34:06 ERROR:
08:34:06 ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.

Going to this endpoint gives us message:

  "This API is no longer supported.\n\nFor information about its removal, please refer to the deprecation notice at: https://developer.atlassian.com/cloud/bitbucket/deprecation-notice-v1-apis/"
@pzvalueadd
Copy link

We have the same problem :/

@pzvalueadd
Copy link

Compiling from sources and replacing currently installed version resolved an issue :)

@ahlinist
Copy link

We got the same issue

@Soyn
Copy link

Soyn commented Jun 12, 2019

I have fixed this problem by re-build the source code. Cause the bitbucket api v1.0 is not support. I have upload the release *.jar in my forked repo. You can get the jar in Sonarqube Plugin V1.3.0

@willejs
Copy link

willejs commented Jun 12, 2019

@mrueegg can you publish releases on this project please? I keep having to build jars for fixes and if I have to do this for the third time might have to automate it on my fork 😿

@O5ten
Copy link

O5ten commented Jun 12, 2019

Same here.

1 similar comment
@thiagosanches
Copy link

Same here.

@thiagosanches
Copy link

Hi guys, any plan to update this? :)

@ariellyciandt
Copy link

Hello @Soyn,

Any change of you create a PR in this repo? If not, could you please provide us the commit where you changed it so we can replicate here?

@Soyn
Copy link

Soyn commented Nov 26, 2019

Hello @Soyn,

Any change of you create a PR in this repo? If not, could you please provide us the commit where you changed it so we can replicate here?

Just clone the repo, then build the source code follow the readme. The latest release in this repo is using v1 api. But in the current codebase. The code use the v2 api. There would have no change in the source code. More info in

val response = v2Api.path(s"/pullrequests/$pullRequestId")

@Soyn
Copy link

Soyn commented Nov 26, 2019

@ariellyciandt Hope it is helpful.

@thiagosanches
Copy link

thiagosanches commented Nov 29, 2019

Hi @Soyn , actually we did that but I believe that it's not the official way, since we initially downloaded the plugin through Marketplace.

As you can see on the image bellow it's using the 1.3.0 from your repo, but it would be great to use the official version.
image

Does anyone have plan to release the official plugin? The latest release is from Dec 18,2017. I think that question is more for the sonar-bitbucket-plugin developers.

Thank you,
Regards.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants