Just signed up with Sonarcloud but it’s a bummer to realize that auto analysis is not supported. We are using bitbucket cloud with Codepipeline and Codebuild (for CI/CD)
For the Pull request decoration,
how do I get the PR key? I believe I will need to set the following in CI/CD:
Or parsing pull-request-number out of CODEBUILD_WEBHOOK_TRIGGER
CODEBUILD_WEBHOOK_TRIGGER
Shows the webhook event that triggered the build. This variable is available only for builds triggered by a webhook. The value is parsed from the payload sent to CodeBuild by GitHub, GitHub Enterprise Server, or Bitbucket. The value’s format depends on what type of event triggered the build.
For builds triggered by a pull request, it is pr/pull-request-number .
For builds triggered by creating a new branch or pushing a commit to a branch, it is branch/branch-name .
For builds triggered by a pushing a tag to a repository, it is tag/tag-name .
Codepipeline is not triggered on pull request though - It is triggered on commit. Merge Commit to dev, qa, prod branches is made only when pull request is approved so CODEBUILD_WEBHOOK_TRIGGER doesn’t seem to be an option?