Sonarqube setup from scratch and Code analysis | [Latest 2024]

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024

Комментарии • 133

  • @georgesmith9178
    @georgesmith9178 2 года назад +2

    Thank you for this brief and to-the-point tutorial

  • @elenafartukova1656
    @elenafartukova1656 Год назад +2

    It's exactly what I was looking for! but it's not the 1st time for your videos that the volume of the sound is not high enough ( I live close to the airport and it's hard to hear you properly when the plane is passing even if I'm using my headset). Other authors have a higher volume for their videos, so this issue could stop me from watching yours if I foresee a busy scheduled for the airport

    • @Engineerhoon
      @Engineerhoon  Год назад

      Sorry to know about that. I will work on this feedback.

    • @crickopedia8438
      @crickopedia8438 Год назад

      I also need to use headphones in my room. By the way, excellent work 🙏

  • @dhruvsinghkushwah5919
    @dhruvsinghkushwah5919 2 года назад

    Loved it. And everything ran perfectly fine for me. I have a mac m1 btw so had to follow a different set of steps. And plus I was using docker so used an argument to indicate that I want to use Linux on an arm architecture
    Thanks a lot!

    • @Engineerhoon
      @Engineerhoon  2 года назад

      Welcome!

    • @ochoax2628
      @ochoax2628 Год назад

      Hi Bro, do you have any tutorial for installing Sonarqube in mac M1?. I'm currently on it but I haven't found any video to install the app on MAC M1

  • @h1ghpower
    @h1ghpower 8 месяцев назад

    Hello sir! Thanks for this amazing tutorial! A quick quesiton for you and for everyone that can help me with this asnwer - can this be used for Wordpress plugins as well? (they are written in PHP mostly and some JS libraries etc). I am curious to hear from you guys if you know any tutorial for this, or if it's even possible.. cheers

  • @ThatFirstRep
    @ThatFirstRep 2 года назад +1

    Amazing work and tutorial! Keep it up please! 🙏

  • @divyad8087
    @divyad8087 Год назад +2

    Hi, without database(SQL) can we analyse project and show coverage in sonarqube dashboard?

    • @Engineerhoon
      @Engineerhoon  Год назад

      Yes. Embedded DB is a default option.

  • @GauravGupta-vo4ii
    @GauravGupta-vo4ii Год назад

    To the point video, Thanks it was helpful.

    • @Engineerhoon
      @Engineerhoon  Год назад

      You're welcome. Check SonarQube playlist for more such videos.

  • @alphaman3765
    @alphaman3765 9 месяцев назад +1

    I tried to run sonarqube,its telling in the terminal that it started.But the problem is when I tries to open sonarqube in port 9000 , its not working

  • @ronakpathak1866
    @ronakpathak1866 2 года назад

    Well explained.. To the point.. Keep up the good work

  • @vinodkumarrdeekonda3135
    @vinodkumarrdeekonda3135 2 года назад

    great video, i can able to setup successfully without any error. Thanks

  • @markdarwinvillarta3768
    @markdarwinvillarta3768 Год назад

    Amazing tutorial, pls tell me how to backup current sonarqube setup or backup its current instance/database if incase my server got f* out so that I can restore it.

    • @Engineerhoon
      @Engineerhoon  Год назад

      Backing up your SonarQube setup, including its instance and database, is crucial to ensure you can restore your code analysis environment in case of server issues or data loss. Here are the steps to backup and restore SonarQube:
      Backup SonarQube Instance:
      Stop SonarQube Server: Before taking any backups, stop the SonarQube server to ensure data consistency.
      Backup SonarQube Home Directory: The SONARQUBE_HOME directory contains configuration files, plugins, and other settings specific to your SonarQube instance. Create a copy of this directory as your backup. The location of this directory can vary based on your installation method but is often found in /opt/sonarqube or C:\SonarQube.
      Database Backup: If you're using an external database (e.g., PostgreSQL, MySQL, or Oracle), you should regularly back up your database separately. The method for doing this will depend on the specific database system you're using. Consult your database documentation for instructions on how to perform backups.
      Restore SonarQube Instance:
      To restore your SonarQube instance, follow these steps:
      Install SonarQube: Install a fresh instance of SonarQube on a new server or environment if your previous one is no longer accessible. Ensure that the SonarQube version matches the one you backed up.
      Stop SonarQube Server: Stop the newly installed SonarQube server.
      Restore SonarQube Home Directory: Replace the SONARQUBE_HOME directory in the new installation with the backup copy from your old server. This will bring back your previous configurations and plugins.
      Database Restore: If you backed up your database separately, restore it to the new database server. Follow the instructions provided by your specific database system for restoring a backup.
      Update Configuration: Check and update the sonar.properties file in your SONARQUBE_HOME/conf directory if necessary. Ensure that the database connection settings and any other configurations are correctly set up for the new environment.
      Start SonarQube Server: Start the SonarQube server in the new environment.
      Verify: Access the SonarQube web interface and verify that your projects, settings, and data are restored correctly.

  • @knownisdropunknownisocean.9282
    @knownisdropunknownisocean.9282 2 года назад +1

    short and sweet..

  • @josephtsibiya6396
    @josephtsibiya6396 2 года назад +1

    Thank you very much, you helped me a lot.

  • @mayurborse9765
    @mayurborse9765 10 месяцев назад +1

    why there is no wrapper.conf file in my downloaded sonrqube?

  • @anoopkathait-t8o
    @anoopkathait-t8o 3 месяца назад

    Thanks for this video

  • @justasj5628
    @justasj5628 12 дней назад

    Thank you!

    • @Engineerhoon
      @Engineerhoon  9 дней назад

      You’re welcome. Checkout other videos on my channel. You may find it helpful.

  • @KhuviJais
    @KhuviJais Год назад

    Great explanation

  • @nooruldeenqader6061
    @nooruldeenqader6061 Год назад

    Thanks a lot, it is a best help

  • @princesahoo3704
    @princesahoo3704 Год назад

    When we are testing using sonarqube, In intelijidea through sonarlint plugin it shows the issues. While in the sonarqube dashboard the issues are not reported like it shows 0 bugs ,0 vulnerabilities and 0 debt ,0 security hotspots,0 code smells not in new code abd also in overall source code.
    How to solve this issue ?

  • @arnaudfrancktaptuekuate5367
    @arnaudfrancktaptuekuate5367 2 года назад

    is very fast but the video was great .thank you!

    • @Engineerhoon
      @Engineerhoon  2 года назад

      You're welcome! Also, thanks for the feedback. Much appreciated.

  • @RAMANKUMARGCEBIT
    @RAMANKUMARGCEBIT 2 года назад +1

    thank u for the video. i have a que: at 1:07, its mentioned that java should be installed. so, even if we want to run SonarQube to test/maintain codes written in Python or other languages, we can use it ?

    • @Engineerhoon
      @Engineerhoon  2 года назад

      jdk needs to be installed as Sonar scanner requires Java

    • @RAMANKUMARGCEBIT
      @RAMANKUMARGCEBIT 2 года назад

      ​@@Engineerhoon if at 12:05 we select python. can we use SonarQube to analyse codes of Python as well?

    • @digitizeo
      @digitizeo 2 года назад

      @@RAMANKUMARGCEBIT Yes, you can!

  • @RAMANKUMARGCEBIT
    @RAMANKUMARGCEBIT 2 года назад

    is the oracle jre and openjdk same? i have dwld version 11 of OpenJDK, do i also need to install OracleJRE ?

    • @Engineerhoon
      @Engineerhoon  2 года назад

      The JDK includes the JRE. You do not have to download it separately

  • @salmahassan8689
    @salmahassan8689 2 года назад

    Thanks for this helpful video

  • @mahendrareddy4557
    @mahendrareddy4557 Год назад

    I have already project is there how to set up sonarqube?

  • @himabinduj3805
    @himabinduj3805 2 года назад +1

    why code coverage 0.0%, can you share a video to achieve code coverage for gradle projects.

    • @Engineerhoon
      @Engineerhoon  2 года назад

      I have a separate video on this. Watch it here ruclips.net/video/zM2DOalHxHY/видео.html

  • @kunalbagwe6091
    @kunalbagwe6091 2 года назад

    Hello,
    I have one question here, I am executing a docker instance of Sonar and I need to change default branch from master to dev for all projects.
    How that has to be configured, please help.
    Thanks in Advance

  • @RAMANKUMARGCEBIT
    @RAMANKUMARGCEBIT 2 года назад

    thank u for the video, can i use it to analyse python codes?

  • @narendrakumariitb
    @narendrakumariitb 2 года назад

    Thank you brother🤗

  • @claudiozimmermannjunior9118
    @claudiozimmermannjunior9118 2 года назад

    Thank you for the help

  • @ghury1
    @ghury1 Год назад +1

    is it free? Can i use it to analyze javascript/typescript projects?

    • @Engineerhoon
      @Engineerhoon  Год назад

      Yes, SonarQube supports analysis of JavaScript and TypeScript projects.

  • @SudhanshuSrivastavaIndia
    @SudhanshuSrivastavaIndia 2 года назад

    This is really helpful.

  • @shashanksid8678
    @shashanksid8678 Год назад

    Git branch is not showing in sonarqube. I can see only master and develop branches in sonar. How can i see the branches in which i made changes ?

    • @Engineerhoon
      @Engineerhoon  Год назад

      I guess that is available only with paid subscription

  • @ahmedelsabagh6990
    @ahmedelsabagh6990 2 года назад

    Very helpful tutorial

  • @sandeepmathu8861
    @sandeepmathu8861 Год назад

    hi bro. i have one doubt. how to take backup and recovery of all the projects?

    • @Engineerhoon
      @Engineerhoon  Год назад

      Backup of projects from where? If you want to backup project's analysis report then getting a DB backup where reports are persisted can be enough.

  • @mithunbiswas5307
    @mithunbiswas5307 2 года назад

    Thank you for very nice video, I found an error on my terminal that Failled to start SonarQube, thanks

  • @techytantra
    @techytantra 2 года назад +2

    Code coverage is showing 0% at 13:52. How to fix this issue?

    • @Engineerhoon
      @Engineerhoon  Год назад

      Please check the other video about code coverage in the SonarQube playlist.

  • @lalitcdac
    @lalitcdac 2 года назад +1

    Can Sonar be used to analyse python/pytest projects?

    • @Engineerhoon
      @Engineerhoon  2 года назад +1

      Yes. You can refer this link docs.sonarqube.org/latest/analysis/languages/python/

  • @ParagOak
    @ParagOak Год назад

    Hi , I’m new to this. I need help. I’m able to run sonar with docker but while adding bitbucket repo it showing Workspace ID validation error. And as per bitbucket this is low priority issue.
    Can you help to setup bitbucket with sonar?
    ( I want to scan angular project through sonar )

    • @Engineerhoon
      @Engineerhoon  Год назад

      Please try following the official docs docs.sonarqube.org/latest/devops-platform-integration/bitbucket-integration/bitbucket-server-integration/

  • @amirizwan6171
    @amirizwan6171 2 года назад +1

    Hey, may I know what kind of terminal or how you can make that kind of terminal on Mac? Thanks

  • @affanahamed9660
    @affanahamed9660 Год назад

    Hey, bro your videos are great can u make the same sonarqube download and set up the video for the windows platform. and what to do if we get the error ' .bat ' command not found in the internal or external commands ..?????

    • @Engineerhoon
      @Engineerhoon  Год назад

      Refer this stackoverflow.com/questions/37695712/sonnar-runner-error-sonar-runner-is-not-recognized-as-an-internal-or-external

  • @ArturoDevA
    @ArturoDevA 2 года назад +1

    how install in apple silicon ?

  • @bilalchandio1
    @bilalchandio1 Год назад

    How to link java plain code with sonarqube for analyisis?

    • @Engineerhoon
      @Engineerhoon  Год назад

      It should be either Gradle or Maven project so that sonarqube plugin can be added.

  • @dilipgowda2916
    @dilipgowda2916 3 года назад +1

    I have setup same as yours, but my code coverage is 0.I have almost 10 test cases

    • @Engineerhoon
      @Engineerhoon  3 года назад

      I have already made a video on that. Check out this video ruclips.net/video/zM2DOalHxHY/видео.html

  • @saurabhmaurya6964
    @saurabhmaurya6964 Год назад

    @Engineerhooon wrapper.conf is now missing after extracting then how to set specific jdk ? help please

    • @Engineerhoon
      @Engineerhoon  Год назад

      You need jdk 17 installed to run SonarQube. Use sonar.properties to update any requires properties.

    • @saurabhmaurya6964
      @saurabhmaurya6964 Год назад +1

      @@Engineerhoon can you connect with me seperately on meet if you have time?..then ....help me...

    • @Engineerhoon
      @Engineerhoon  Год назад

      @@saurabhmaurya6964 Yes we can discuss. Please reach out to me on LinkedIn : www.linkedin.com/in/sunny-shaw/

  • @manasnaik6904
    @manasnaik6904 2 года назад

    fir me its always giving error "You're not authorized to run analysis. Please contact the project administrator." However i provided all level access.

    • @Engineerhoon
      @Engineerhoon  2 года назад +1

      Could you please follow what is suggested in the below link
      community.sonarsource.com/t/error-youre-not-authorized-to-run-analysis-please-contact-the-project-administrator/11979/5

  • @gauravchauhan-en9kc
    @gauravchauhan-en9kc 2 года назад

    For me, Below error is coming.
    Error : 2022.07.20 20:46:38 ERROR app[][o.s.a.p.ManagedProcessHandler] Failed to launch process [ElasticSearch]
    java.lang.IllegalStateException: Could not delete Elasticsearch temporary conf directory
    Please help.

    • @Engineerhoon
      @Engineerhoon  2 года назад

      According to the below link, it suggests to re-download the Sonarqube for the mentioned issue..
      community.sonarsource.com/t/cannot-start-sonarqube-8-9-es-not-starting/49522

  • @tejav143
    @tejav143 3 года назад +1

    How can we integrate to the branches in sonar cloud?

    • @Engineerhoon
      @Engineerhoon  3 года назад +1

      You can refer this doc docs.sonarqube.org/latest/branches/overview/

  • @rutujamhatre5486
    @rutujamhatre5486 2 года назад

    Whenever I am trying to add postgresql credentials in sonar.properties file, getting authentication error in the frontend.
    In logs, getting only one warning: To change the default administrator credentials-which i've already changed.
    Pls help!

    • @Engineerhoon
      @Engineerhoon  2 года назад +1

      Verify the credentials once if those are correct. Also, check other log files.

  • @amritanshusatapathy9149
    @amritanshusatapathy9149 Год назад

    How to add security rules?

  • @parthapaul1249
    @parthapaul1249 2 года назад

    Bro will it work on Java 8("1.8.0_301")??

    • @Engineerhoon
      @Engineerhoon  2 года назад

      No, according to docs docs.sonarqube.org/latest/requirements/requirements/

  • @ducnguyendinhtrung4745
    @ducnguyendinhtrung4745 3 года назад +1

    hi bro, are there any versions of SonarQube can do on java 8. Thanks

    • @Engineerhoon
      @Engineerhoon  3 года назад +2

      You can use any stable version

    • @ducnguyendinhtrung4745
      @ducnguyendinhtrung4745 3 года назад

      @@Engineerhoon i try it on my mac but i can’t up my project into it :((((

    • @Engineerhoon
      @Engineerhoon  3 года назад

      @@ducnguyendinhtrung4745 Can you check logs? That might help you to resolve the issue.

  • @oladimejijames9554
    @oladimejijames9554 2 года назад

    i can't edit my wrapper.conf, it appears that is a read-only file

    • @Engineerhoon
      @Engineerhoon  2 года назад

      Try changing the permission. On which editor you are trying to edit?

  • @krishnataninki3391
    @krishnataninki3391 2 года назад

    ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

    • @Engineerhoon
      @Engineerhoon  2 года назад

      Could you please check logs file for exact error?

  • @SridharA-kq4xw
    @SridharA-kq4xw Год назад +1

    HI: Please speak with proper guidance not that much speed and commands need to be clear for learners.If you are that speed how can we grab it.

    • @Engineerhoon
      @Engineerhoon  Год назад

      Sorry about that. Will take care in future videos. For now, you can try out watching this video at 0.75x speed [RUclips feature to slow down the normal speed]

  • @AnilKumar-ei8uy
    @AnilKumar-ei8uy 2 года назад

    How can we download that report

  • @naglaaly2143
    @naglaaly2143 2 года назад

    can you analyze php projects?

    • @Engineerhoon
      @Engineerhoon  2 года назад

      I haven't tried it but you can follow the below document to analyze php projects
      docs.sonarqube.org/latest/analysis/languages/php/

  • @preet5472
    @preet5472 Год назад

    Can you help me to set sonarqube in https & how to pass ssl when scan report sent to sonare servers

  • @virtualnerd8344
    @virtualnerd8344 3 года назад

    brother where can we get this vode snippet to run on sonar

    • @Engineerhoon
      @Engineerhoon  3 года назад +1

      Do you want configuration or the project?

    • @virtualnerd8344
      @virtualnerd8344 3 года назад

      @@Engineerhoon bro project code snippet, to run sonar on

    • @Engineerhoon
      @Engineerhoon  3 года назад +1

      @@virtualnerd8344 You can use any project. Try out the same Snake and ladder repo from my Github. Link is in the description.

    • @virtualnerd8344
      @virtualnerd8344 3 года назад

      @@Engineerhoon thank you brother

    • @virtualnerd8344
      @virtualnerd8344 3 года назад

      @@Engineerhoon bro there is no link in the description

  • @blueberrydiw8340
    @blueberrydiw8340 3 года назад

    Why everyone skips the postgresql part

    • @Engineerhoon
      @Engineerhoon  3 года назад

      Hi, Setting up a Postgress server is a different topic. I have mentioned the Postgress configuration required for Sonarqube at timestamp 6:51.
      For the Postgress setup using docker compose, you can refer to this bit.ly/3CiJVf0 or you can refer to other resources on internet. Hope this helps.

  • @jayakataboina1522
    @jayakataboina1522 2 года назад +1

    Hi

  • @lucacaracciolo2060
    @lucacaracciolo2060 5 месяцев назад

    AIUTOOOOOO

  • @v.sreesairam9488
    @v.sreesairam9488 3 месяца назад

    Hello sir I am getting issue like this what to do for this??
    java.io.IOException: Cannot create directory '/var/sonarqube/data'.
    at org.apache.commons.io.FileUtils.mkdirs(FileUtils.java:2361)
    at org.apache.commons.io.FileUtils.forceMkdir(FileUtils.java:1429)
    at org.sonar.application.AppFileSystem.createDirectory(AppFileSystem.java:80)
    at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:59)
    at org.sonar.application.App.start(App.java:53)
    at org.sonar.application.App.main(App.java:81)
    I have tried everymethod but not able to rectify this

    • @Engineerhoon
      @Engineerhoon  3 месяца назад

      Follow this post community.sonarsource.com/t/sonarqube-shuts-back-down/15853

  • @OscarDiaz-sk8jy
    @OscarDiaz-sk8jy 4 месяца назад

    Nice video, How can I contact you?

    • @Engineerhoon
      @Engineerhoon  4 месяца назад

      engineerhoon_2.0 my insta handle

  • @jayakataboina1522
    @jayakataboina1522 2 года назад

    Hi