Analyze a project then merge if it is passed

hello, I have been tasked to analyze a project and, automatically, accept or reject its pull request based on the analysis report

  • ALM used (GitHub, Bitbucket Cloud, Azure DevOps): Bitbucket, Teleperformance’s cloud
  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI: Azure DevOps
  • Scanner command used when applicable: on the YML, I just added SonaCloud analysis
  • Languages of the repository: it’s hard to tell, the application is in French, but the entire ecosystem (the ALM, the CI/CD tool…) is in English
  • Only if the SonarCloud project is public, the URL: private projects, I say
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting): no errors
  • Steps to reproduce: create a project, modify it (like adding a simple empty file) in a branch and create a pull request, in Azure DevOps, create the project with a pipeline pointing to the repository and add the SonarCloud activities to analyze with pointing the results to SonarCloud, the on SonarCloud, create the project
    do you have an idea how to do this? and thanks in advance

Hi Mohammed,

Were you able to successfully set up your project and run the first analysis?

If so, then when you make a pull request, the system should automatically analyze the changes introduced by that PR and report the result both in your SonarCloud account and in Bitbucket Cloud.

I recommend that you follow the documentation:

Start here to make sure you have set everything up correctly: https://sonarcloud.io/documentation/getting-started/bitbucket-cloud/

Then move on to here: https://sonarcloud.io/documentation/improving/overview/

And for specific info about PR analysis look here: https://sonarcloud.io/documentation/improving/pull-requests/

thank you
I noticed that the feature exists now
I have been analyzing projects for my company since a long time but it is just recently that I noticed that it is done automatically ans the project page reports other branches too, I set up the pipelines since a long time and back then the SonaCloud interface was a bit primitive but it’s much better now
like I said, when I first analyzed projects, the interface was a bit primitive and thus I didn’t realize that it’s done automatically

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.