In this section
The Parasoft SonarQube Importer extension imports static analysis results from a SonarQube server to Parasoft DTP so that the results can be processed and viewed along with other data points in Parasoft DTP dashboards and reports.
The integration also adds scope, authorship, and source control support that further enhance SonarQube's capabilities. Additionally, the extension generates a Parasoft report that shows violations for each author and severity.
In addition to the required Parasoft DTP settings (refer to Connecting to DTP), the following settings are also required to run the SonarQube Importer extension. Open the settings.properties file located in Multi-Language Pack installation directory and specify the following properties settings.
SonarQube server URL, including port number and protocol name (http:// or https://).
Example:
sonarqube.endpoint=https://localhost:9000
Name of the project in SonarQube.
Example:
sonarqube.project.key=Parabank
SonarQube user ID for logging in.
SonarQube user password. You can enter the password as plain text or as an encoded string. See dtp.password for instructions on how to encode your password.
sonarqube.endpoint=http://myserver.company.com:9000 sonarqube.project.key=demo sonarqube.user.id=admin sonarqube.password=admin |
multilanguage-pack.bat -tool sonarqube -source.dir "C:\sample\sampleProjectFolder" |
The extension performs the following actions during execution:
The following settings are required when executing the multilanguage-pack.bat or multilanguage-pack.sh script.
Specifies the Parasoft extension to execute. Use -tool sonarqube
to run the SonarQube extension.
Specifies the path to the folder containing the source code analyzed by SonarQube. This is used to collect source control metadata (e.g., authorship, last updated, etc.) for DTP reporting and processing.