How to Run SonarScanner CLI from the zip file | SonarScanner Tutorial | Download SonarScanner

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Hello friends in this session we are going to learn how to run Sona scanner CLI from the Z file let's start so here we will start with the what is son scanner CLI let's see Sona scanner CLI CLI means command line interface is a tool provided by sonar Cube for analyzing the source code of projects it used to perform static code analysis and to detect work vulnerabilities for Ma and secur vulnerabil in various programming language so how it works Sona scanner so let's see it it will install in the sonas c means sorry it means configuring it to connect to sonar server Okay so so it's meaning uh running the code analysis on your project and VI the analysis result with within the your sonas scan Das dashboards okay so it means the analysis result will help developer understand code quality issues and it take corrective action to improve code maintainability reliability and security this is our son okay let's see now how to run sonas CLS from the g f so firstly you have to download the sonas scanner C file so you have to go on your official website sonas scanner page like this and you have to download the as your operating syst okay so let's go on your official website click on this and this official we okay so let's see this is and this is version 5.0.1 so as your your OS this scanner C you have to download it my OS is Windows 64bit C on this window 6 okay and it will automatically download okay so I have already downloaded file this let's see here this one okay after that what we have to do Second Step exert the J file so firstly we have to exert the downloaded J file so click on this and un this all extract it Okay click on this extract it all all un so I have already un this here if I go inside this scanner folder then these folders We have so after that next step we have to set environment Val so if you had to setting up environment variable might be necessary for the son scanner C to recognize the system the instruction of for son setting up environment variable can def on your operating system you are using so here we are used Windows War so here first we have to go on your this PC or my computer and select the proper or simply you can search here from here you can search directly environment variable so I will it environment Vari okay so Sy envir and go on your advance and on thisable after that you have to select the file from system VAR okay so select here part and this folder PA folder PA of the Chanel to from here and P in your system environment okay environment varable index here you have to add this part okay like that so this is my scanner Windows okay this I already add here okay okay and again okay after that next step let's see all the step we have perform so let's see after that you have to verify the sonas Scanner installation so using this command sonas scanner. here using this command we can verify thean Okay so will get should see the health information for if the installation was like let's see open open it I will in and see our C or our setup has been completed or can install successfully okay so this information we have to get okay next step configure thear to properties if necessary if you have to run this project that's why you have to create the project property in your Ro of the directory to your project to configure the properties such Asar URL project key login password authentication token like that all this property you have to add in your project okay in your project so like that you have to add all this properties okay so let's see here in the configuration here property section I will add all this okay so let's see here this is our property section and here I have already added some properties like son this Ur I will add it on this son can propert and after that login this login I have already added and this is pass okay if I want to give this soar project key it means you have to add your project name as a Sona okay so any name you here as your requirement and add this okay let's save it and after that go to your project where your project is and you have to open the terminal L okay I your anal okay so you have to go your project and this command you have to run on your and run your it h and let's see so let's see here our project execution okay so now let's cck we have result so let's go on your dashboard and this page refesh and you can see here your scanner project will okay let's see Project M branch is not an because this project in that project we have okay that's why we cannot see the we cannot Analyze This the main branch has no line of okay so in this way we learn how to run CLI from the thank you for the watching video
Info
Channel: DevOps Hint
Views: 717
Rating: undefined out of 5
Keywords: How to Run SonarScanner CLI from the zip file, Download the SonarScanner CLI, SonarScanner Tutorial
Id: QGebT9ec6FQ
Channel Id: undefined
Length: 10min 36sec (636 seconds)
Published: Fri Dec 08 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.