SonarCloud integration with Azure Pipeline

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ค. 2024
  • This tutorial covers all the steps required to integrate SonarCloud with azure pipeline. We will see its benefits and issues you might face while integrating it.
    We will also see how to integrate quality gate result in pull request.

ความคิดเห็น • 60

  • @SureshP-ds3nh
    @SureshP-ds3nh 2 ปีที่แล้ว +1

    Thank You Very Much

  • @hmper
    @hmper 2 ปีที่แล้ว +2

    Awesome presentation, you are a gem! Thank you for helping the community, may you grow exponentially professionally for the great work you are doing. Would be great if you cover some other integrations like ServiceNow in the release pipeline for change management, that would be so cool. Thanks BOSS!

  • @rajhawaldar
    @rajhawaldar 3 ปีที่แล้ว

    Really helpful. Keep it up !!

  • @vagatsingh7402
    @vagatsingh7402 3 ปีที่แล้ว +1

    awesome, it was very helpful

  • @adomovic323
    @adomovic323 2 ปีที่แล้ว +2

    Thank you very much, this is helpful :)

  • @shraddhasable5416
    @shraddhasable5416 3 ปีที่แล้ว +1

    very well explained ..thank you so much

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  3 ปีที่แล้ว

      Thank you for the comment, if the content helps you do subscribe to my channel.

  • @santoshnakka7431
    @santoshnakka7431 2 ปีที่แล้ว +1

    Superb mate, it is very good explanation. Cheers.

  • @varatharajansethuraman3641
    @varatharajansethuraman3641 2 ปีที่แล้ว +1

    Excellent

  • @rafaelmateus8497
    @rafaelmateus8497 2 ปีที่แล้ว +1

    nice thanks to help

  • @vinayakchikhali6276
    @vinayakchikhali6276 2 ปีที่แล้ว +1

    excellent👏👏👏👍👍👍

  • @pigrebanto
    @pigrebanto ปีที่แล้ว

    Great demo! But how does it work under the hood? Is an agent from SonarCloud downloaded on the build agent machine for making the quality checks?

  • @Raziel369
    @Raziel369 3 ปีที่แล้ว +1

    Really helpful. We are having an issue with 0 code coverage as well.

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  3 ปีที่แล้ว

      I hope the issue is resolved now, in case you are still facing the issue do let me know.
      If the content helps you do subscribe to my channel.

  • @ManishKumar-sv5my
    @ManishKumar-sv5my 2 ปีที่แล้ว +2

    Very well explained. Thanks!!
    Will it generate coverage report on sonar cloud if some tests are failing ?

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  2 ปีที่แล้ว

      sorry for delayed response, if code coverage file is generated and you are performing sonar scan even after test failure then yes the results will be published to sonar.

  • @rahulkrishnam5923
    @rahulkrishnam5923 3 ปีที่แล้ว +1

    Hi, video helped alot thanks for the effort, but still facing issue in code coverage its not coming up

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  3 ปีที่แล้ว

      Please follow steps I have mentioned in below video, the portion starts at 14:00 -
      th-cam.com/video/AzZSwuea4uc/w-d-xo.html
      Let me know if you still face the issue.

  • @akshayb7800
    @akshayb7800 2 ปีที่แล้ว +1

    I am trying to setup the PR decoration. I have followed the steps you have mentioned. But I am not able to view SonarCloud/qualitygate in the status check of the branch policy. Do we need to add any configuration to the pipeline to view that?

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  2 ปีที่แล้ว

      Make sure you are not doing it on private repository, for private repository I think you will need developer edition.
      If you are not using private repository then follow steps mentioned in below blog, let me know if it solves the problem.
      writeabout.net/2019/04/18/use-pull-request-decoration-in-azure-devops-with-sonarcloud/

  • @mohammedabdulmujeeb3700
    @mohammedabdulmujeeb3700 ปีที่แล้ว

    Can u help me in. I am struck in one of statuschecks implementations. I have enabled it as a mandatory check for Code quality but they are listed out as optional.

  • @anandhu5082
    @anandhu5082 3 ปีที่แล้ว +1

    here we are using sonarCloud right? I see sonarQube tasks aswell in azure. when are they used?

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  3 ปีที่แล้ว +1

      In case you are using SonarQube then you can use those tasks, SonarQube deployment files you can download and host on your own server for uploading the results. In case organization do not want to go with cloud offering and want to keep the results within premises then SonarQube is the option.
      If the content helps you then do subscribe to my channel.

  • @samikshamagdum5537
    @samikshamagdum5537 2 ปีที่แล้ว +1

    I am setting up sonar PR decoration for my ADO Project. I am not getting drop down for sonar status check. what can be the issue?

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  2 ปีที่แล้ว

      Sorry for the delayed response, check if you are using private repository for scanning. I think for it free only for public repositories.
      You can also refer below steps for enabling it:
      writeabout.net/2019/04/18/use-pull-request-decoration-in-azure-devops-with-sonarcloud/

  • @nikhilbs5406
    @nikhilbs5406 2 ปีที่แล้ว +1

    10:45 Could you please help me on configuring sonarcloud for multiple projects? How we can add variables or parameters.

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  2 ปีที่แล้ว

      Sorry for delayed response. You can try scanning different projects with different project keys, that will make sure results are shown separately for each project.

    • @nikhilbs5406
      @nikhilbs5406 2 ปีที่แล้ว +1

      @@thesoftwaredeveloper2307 I have used pre-defined variables and its working.

  • @laxmiworld1887
    @laxmiworld1887 หลายเดือนก่อน

    How to generate personal access token from Azure?

  • @kavacham222
    @kavacham222 2 ปีที่แล้ว

    Thankyou for the video., But for me its showing no code coverage...wat might be the problm?

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  2 ปีที่แล้ว

      Sorry for delayed response, the reason can be wrong configuration for coverage file.

  • @davidemmanuel3001
    @davidemmanuel3001 2 ปีที่แล้ว +1

    How do you set the quality gate standard?

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  2 ปีที่แล้ว

      Sorry for delayed response, I have not tried that but you can follow steps mentioned in below blog to achieve it:
      writeabout.net/2018/09/25/fail-your-azure-devops-pipeline-if-sonarqube-quality-gate-fails/

  • @davidacero5646
    @davidacero5646 3 ปีที่แล้ว +1

    Is it possible to publish the analysis results into a different branch?

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  3 ปีที่แล้ว

      Just to make sure I got your question right, so you want to upload the results in different project?

    • @davidacero5646
      @davidacero5646 3 ปีที่แล้ว +1

      @@thesoftwaredeveloper2307 , same repo, different branch.

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  3 ปีที่แล้ว

      @@davidacero5646 Sorry for delayed response, as per my knowledge the community edition only supports scanning on main branch. So with different branch of same repo it won't be possible.

  • @SteveNgaiCheeWeng
    @SteveNgaiCheeWeng 3 ปีที่แล้ว +1

    Hi if I login with GitHub credential, I can't see Azure DevOps organization name?

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  3 ปีที่แล้ว

      For azure DevOps organization you will need to use your azure DevOps account.

  • @okey1317
    @okey1317 3 ปีที่แล้ว +1

    Hi can you explain how to integrate, sonarCloud with azure pipeline (not sonarcloud). I am able to download and start sorcube server in my local. But no idea how i will intergrate that into azure devops piepeline

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  3 ปีที่แล้ว

      For that you will need to host SonarQube on server where we can upload the results, below blog contains very easy steps for the setup till creating service connection:
      blog.opstree.com/2021/04/27/sonarqube-integration-with-azure-devops/
      Once the service connection is ready in Azure DevOps you can use the SonarQube tasks for scanning the project and uploading the results (similar to what we have done in SonarCloud section)
      Let me know if you face any issues in setup.

    • @okey1317
      @okey1317 3 ปีที่แล้ว +1

      @@thesoftwaredeveloper2307 Thanks for the reply,, And I think, here Sonarcube is downloaded and installed in an azure virtual machine. Is it possible to access the sonarcube installed in my local ?

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  3 ปีที่แล้ว

      @@okey1317 I have not tried but you can try one thing, use self hosted agent and host sonarqube on same machine. The locally hosted sonarqube portal will be accessible on this agent so it might work.

  • @ashukhan2779
    @ashukhan2779 2 ปีที่แล้ว +1

    How can I configure sonarcloud through docker image and yml file?

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  2 ปีที่แล้ว

      Sorry for delayed response, I have not tried this but you can check if there is any existing docker image with this sonarqube configuration.

  • @awsservices8144
    @awsservices8144 3 ปีที่แล้ว

    In Sonar Cloud after adding token WHy i am not able to see the Organisation Its faded..for me only one organistaion is visible.

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  3 ปีที่แล้ว

      Sorry for delayed response, the organizations must be visible under user icon on top. If you click on it, it should show the organizations list.
      If the content helps you, do subscribe to the channel.

    • @awsservices8144
      @awsservices8144 3 ปีที่แล้ว

      @@thesoftwaredeveloper2307 thankyou

  • @tejav143
    @tejav143 2 ปีที่แล้ว +1

    How can we include to the branches in sonarcloud????

    • @thesoftwaredeveloper2307
      @thesoftwaredeveloper2307  2 ปีที่แล้ว +1

      Sorry for delayed response, for branch analysis I think you can use below parameter:
      sonar.branch.name
      Project will stay same, only branch name will be additional parameter.

    • @tejav143
      @tejav143 2 ปีที่แล้ว +1

      @@thesoftwaredeveloper2307 thanks for ur response,I'm able to get that branch 😉

  • @shaikhashmi1685
    @shaikhashmi1685 ปีที่แล้ว

    Can you please provide me the repo ?