how to apply ivermectin to dogs buy stromectol supreme suppliers no prescription can i buy ivermectin over the counter uk how to buy stromectol ca without prescription

How to integrate Sonarqube (Community Version) with Jenkins for a DotNet Project and use CNES to download the report?

Prerequisite: SonarQube scanners require version 8 or 11 of the JVM and the SonarQube server requires version 11. Versions beyond Java 11 are not officially supported.

Recommended versions:

  1. Go to url: https://www.sonarqube.org/downloads/
  2. Download Community Edition.
  3. Unzip the file and in that folder go to file : “conf\wrapper.conf”.
  4. Open “wrapper.conf” file using notepad++ and edit the “wrapper.java.command”. Enter the installed location of Java sdk here:

5. Go to Sonarqube location “sonarqube\bin\windows-x86-64” and Run file “StartSonar.bat” as Admin:

6. The sonarqube will run at default port:

Login using default credentials: Username : admin, Password: admin

7. Click on Create a new project:

8.Enter Project Key:

9. Click on Set Up and generate a new token:

10.Copy and save this token for future use.
11. Choose the project language and click on the “Download” button.

12. From the opened webpage: Download sonar scanner for : .NET Framework 4.6+ and .NET Core 2.0+,(this can vary with respect to your project)

13. Extract both these zip files and enter their location in “path” variable of “Environment Variables” as follows:

14. Go back to Sonarqube and run the auto generated commands for that project. Steps to run are as follows:
a. Go the project directory(root path of project code).
b. Run Command prompt.
c. Copy and Run the first command from Sonarqube page:
For example:
SonarScanner.MSBuild.exe begin /k:”Enter Project name here” /d:sonar.host.url=”http://localhost:9000″ /d:sonar.login=”Enter generate token here”

If it throws error then replace “SonarScanner.MSBuild.exe” with complete path of “SonarScanner.MSBuild.exe”.

For example:
“C:\Users\vmuser\Documents\Softwares\sonar-scanner-msbuild-4.7.1.2311-net46\SonarScanner.MSBuild.exe” begin /k:”Enter Project name here” /d:sonar.host.url=”http://localhost:9000″ /d:sonar.login=”Enter generated token here”

d. Copy and Run the second command from Sonarqube page:
For example:
MsBuild.exe /t:Rebuild

If it throws error then replace “MsBuild.exe” with complete path of “MsBuild.exe”.

For example:
“C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\”MsBuild.exe /t:Rebuild

e. Copy and Run the second command from Sonarqube page:
For example:
SonarScanner.MSBuild.exe end /d:sonar.login=” Enter generated token here”

If it throws error then replace “SonarScanner.MSBuild.exe” with complete path of “SonarScanner.MSBuild.exe”.

For example:
“C:\Users\vmuser\Documents\Softwares\sonar-scanner-msbuild-4.7.1.2311-net46\SonarScanner.MSBuild.exe” end /d:sonar.login=” Enter generated token here”

15. After successful completion a complete report will be generated in Sonarqube.

CNES Report Generation:

  • Download the CNES plugin or copy it from attachments and place in the location: “Sonarqube downloaded location\extensions\plugins”.
  • Restart the Sonarqube.
  • Go to Sonarqube home page, click on Administration.
  • Select Marketplace and scroll down to plugins section.
  • Search and install Sonarqube CNES report.

 

  • Restart Sonarqube.
  • You will find a new tab “More” on the top select “CNES Report” from it.
  • You can generate CNES report from this screen.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *