Release Bitbucket connection

Hi there,

we have a several SonarCloud projects which are connected to Bitbucket (Cloud) repositories using the Bitbucket ↔ SonarCloud integration. Recently, just after we deleted an inactive user on SonarCloud side, the pipeline of one specific repository using the SonarCloud pipe started to fail. After some research, it turned out that the deleted user initially had set up integration for that particular repository, so the deletion seems to have messed up the integration. Unfortunately, we have no possibility to relase and re-apply the project link on Bitbucket side. We also cannot find a button where we could do this on the SonarCloud side. Overriding SONAR_TOKEN variable with a valid token does not seem to help as well.

Is there a possibility to reset the connection between Bitbucket and SonarCloud?

We are using sonarsource/sonarcloud-scan:2.0.0 pipe. The error message we see in the pipeline is:

ERROR: Error during SonarScanner execution
ERROR: You must define the following mandatory properties for 'Unknown': sonar.projectKey, sonar.organization
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
✖ SonarCloud analysis failed. (exit code = 2)

During a private conversation, a workaround was made by adding a file and additional ARGS to the script.
But the cause of the issue is still not clear. Deleting and recreating the project on the SC side did not affect the issue.

1 Like