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

  Рет қаралды 206,343

Engineerhoon

Engineerhoon

Күн бұрын

Пікірлер: 133
@georgesmith9178
@georgesmith9178 2 жыл бұрын
Thank you for this brief and to-the-point tutorial
@Engineerhoon
@Engineerhoon 2 жыл бұрын
Your welcome!
@techytantra
@techytantra 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.
@mayurborse9765
@mayurborse9765 11 ай бұрын
why there is no wrapper.conf file in my downloaded sonrqube?
@divyad8087
@divyad8087 Жыл бұрын
Hi, without database(SQL) can we analyse project and show coverage in sonarqube dashboard?
@Engineerhoon
@Engineerhoon Жыл бұрын
Yes. Embedded DB is a default option.
@alphaman3765
@alphaman3765 10 ай бұрын
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
@RAMANKUMARGCEBIT
@RAMANKUMARGCEBIT 2 жыл бұрын
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!
@ThatFirstRep
@ThatFirstRep 2 жыл бұрын
Amazing work and tutorial! Keep it up please! 🙏
@Engineerhoon
@Engineerhoon 2 жыл бұрын
Thanks! 🙂
@ArturoDevA
@ArturoDevA 2 жыл бұрын
how install in apple silicon ?
@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
@amirizwan6171
@amirizwan6171 2 жыл бұрын
Hey, may I know what kind of terminal or how you can make that kind of terminal on Mac? Thanks
@Engineerhoon
@Engineerhoon 2 жыл бұрын
I am using iterm with a different theme.
@amirizwan6171
@amirizwan6171 2 жыл бұрын
@@Engineerhoon thanks bro
@Engineerhoon
@Engineerhoon 2 жыл бұрын
@@amirizwan6171 Welcome!
@GauravGupta-vo4ii
@GauravGupta-vo4ii Жыл бұрын
To the point video, Thanks it was helpful.
@Engineerhoon
@Engineerhoon Жыл бұрын
You're welcome. Check SonarQube playlist for more such videos.
@Johnello1
@Johnello1 10 ай бұрын
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
@mahendrareddy4557
@mahendrareddy4557 Жыл бұрын
I have already project is there how to set up sonarqube?
@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 Жыл бұрын
@@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/
@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 ?
@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
@tejav143
@tejav143 3 жыл бұрын
How can we integrate to the branches in sonar cloud?
@Engineerhoon
@Engineerhoon 3 жыл бұрын
You can refer this doc docs.sonarqube.org/latest/branches/overview/
@elenafartukova1656
@elenafartukova1656 Жыл бұрын
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 🙏
@himabinduj3805
@himabinduj3805 2 жыл бұрын
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 kzbin.info/www/bejne/sH6VdYKXoa2rfrs
@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.
@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
@ronakpathak1866
@ronakpathak1866 2 жыл бұрын
Well explained.. To the point.. Keep up the good work
@Engineerhoon
@Engineerhoon 2 жыл бұрын
Thanks!
@anoopkathait-t8o
@anoopkathait-t8o 5 ай бұрын
Thanks for this video
@Engineerhoon
@Engineerhoon 5 ай бұрын
Your welcome!
@justasj5628
@justasj5628 Ай бұрын
Thank you!
@Engineerhoon
@Engineerhoon Ай бұрын
You’re welcome. Checkout other videos on my channel. You may find it helpful.
@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
@vinodkumarrdeekonda3135
@vinodkumarrdeekonda3135 2 жыл бұрын
great video, i can able to setup successfully without any error. Thanks
@Engineerhoon
@Engineerhoon 2 жыл бұрын
Glad to know that :)
@josephtsibiya6396
@josephtsibiya6396 2 жыл бұрын
Thank you very much, you helped me a lot.
@Engineerhoon
@Engineerhoon 2 жыл бұрын
Most welcome!
@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
@knownisdropunknownisocean.9282
@knownisdropunknownisocean.9282 2 жыл бұрын
short and sweet..
@Engineerhoon
@Engineerhoon 2 жыл бұрын
Thanks!
@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.
@amritanshusatapathy9149
@amritanshusatapathy9149 Жыл бұрын
How to add security rules?
@lalitcdac
@lalitcdac 3 жыл бұрын
Can Sonar be used to analyse python/pytest projects?
@Engineerhoon
@Engineerhoon 3 жыл бұрын
Yes. You can refer this link docs.sonarqube.org/latest/analysis/languages/python/
@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.
@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/
@AnilKumar-ei8uy
@AnilKumar-ei8uy 2 жыл бұрын
How can we download that report
@KhuviJais
@KhuviJais Жыл бұрын
Great explanation
@Engineerhoon
@Engineerhoon Жыл бұрын
Thank you!
@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 жыл бұрын
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
@dilipgowda2916
@dilipgowda2916 3 жыл бұрын
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 kzbin.info/www/bejne/sH6VdYKXoa2rfrs
@nooruldeenqader6061
@nooruldeenqader6061 Жыл бұрын
Thanks a lot, it is a best help
@Engineerhoon
@Engineerhoon Жыл бұрын
Glad it helped!
@rutujamhatre5486
@rutujamhatre5486 3 жыл бұрын
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 3 жыл бұрын
Verify the credentials once if those are correct. Also, check other log files.
@ducnguyendinhtrung4745
@ducnguyendinhtrung4745 3 жыл бұрын
hi bro, are there any versions of SonarQube can do on java 8. Thanks
@Engineerhoon
@Engineerhoon 3 жыл бұрын
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 3 жыл бұрын
i can't edit my wrapper.conf, it appears that is a read-only file
@Engineerhoon
@Engineerhoon 3 жыл бұрын
Try changing the permission. On which editor you are trying to edit?
@narendrakumariitb
@narendrakumariitb 2 жыл бұрын
Thank you brother🤗
@Engineerhoon
@Engineerhoon 2 жыл бұрын
Your welcome!
@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
@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/
@SudhanshuSrivastavaIndia
@SudhanshuSrivastavaIndia 3 жыл бұрын
This is really helpful.
@Engineerhoon
@Engineerhoon 3 жыл бұрын
Thank you 😊
@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/
@salmahassan8689
@salmahassan8689 2 жыл бұрын
Thanks for this helpful video
@Engineerhoon
@Engineerhoon 2 жыл бұрын
Most welcome
@virtualnerd8344
@virtualnerd8344 3 жыл бұрын
brother where can we get this vode snippet to run on sonar
@Engineerhoon
@Engineerhoon 3 жыл бұрын
Do you want configuration or the project?
@virtualnerd8344
@virtualnerd8344 3 жыл бұрын
@@Engineerhoon bro project code snippet, to run sonar on
@Engineerhoon
@Engineerhoon 3 жыл бұрын
@@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
@ghury1
@ghury1 Жыл бұрын
is it free? Can i use it to analyze javascript/typescript projects?
@Engineerhoon
@Engineerhoon Жыл бұрын
Yes, SonarQube supports analysis of JavaScript and TypeScript projects.
@preet5472
@preet5472 Жыл бұрын
Can you help me to set sonarqube in https & how to pass ssl when scan report sent to sonare servers
@Engineerhoon
@Engineerhoon Жыл бұрын
Yes. Please DM on linkedIn
@RAMANKUMARGCEBIT
@RAMANKUMARGCEBIT 2 жыл бұрын
thank u for the video, can i use it to analyse python codes?
@Engineerhoon
@Engineerhoon 2 жыл бұрын
Yes
@claudiozimmermannjunior9118
@claudiozimmermannjunior9118 2 жыл бұрын
Thank you for the help
@Engineerhoon
@Engineerhoon 2 жыл бұрын
Welcome!
@ahmedelsabagh6990
@ahmedelsabagh6990 2 жыл бұрын
Very helpful tutorial
@Engineerhoon
@Engineerhoon 2 жыл бұрын
Glad it was helpful!
@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.
@neverStopLearning3
@neverStopLearning3 3 жыл бұрын
Thank you for very nice video, I found an error on my terminal that Failled to start SonarQube, thanks
@Engineerhoon
@Engineerhoon 3 жыл бұрын
Check log files for the error
@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?
@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.
@SridharA-kq4xw
@SridharA-kq4xw Жыл бұрын
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 [KZbin feature to slow down the normal speed]
@jayakataboina1522
@jayakataboina1522 3 жыл бұрын
Hi
@lucacaracciolo2060
@lucacaracciolo2060 7 ай бұрын
AIUTOOOOOO
@v.sreesairam9488
@v.sreesairam9488 4 ай бұрын
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 4 ай бұрын
Follow this post community.sonarsource.com/t/sonarqube-shuts-back-down/15853
@OscarDiaz-sk8jy
@OscarDiaz-sk8jy 6 ай бұрын
Nice video, How can I contact you?
@Engineerhoon
@Engineerhoon 6 ай бұрын
engineerhoon_2.0 my insta handle
@jayakataboina1522
@jayakataboina1522 3 жыл бұрын
Hi
How To Sonarqube Setup From Scratch And Code Analysis (2024)
26:08
ProgrammingKnowledge
Рет қаралды 68 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
SonarQube - Code Quality and Code Security - Code Quality Gates
16:49
Flutter Explained
Рет қаралды 45 М.
Sonarqube Complete Tutorial 2023
29:33
DevOps Shack
Рет қаралды 105 М.
Java Source Code Analysis using SonarQube | Java Techie
23:44
Java Techie
Рет қаралды 76 М.
What and why is SonarQube ? |  Setup SonarQube on AWS | SonarQube for DevOps
17:37