If you already are running a centralized SonarQube, use the Scan with SonarQube action instead. |
If you do not have a centralized SonarQube already installed, use this action to scan a Git repository with the SonarQube static application security testing (SAST) scanner, which detects security flaws and provides suggested code fixes. SonarQube scan results are displayed in CloudBees platform analytics dashboards, but not in SonarQube reports, as the SonarQube instance is headless/ephemeral.
For code coverage information, you have to use a third-party coverage tool, as SonarQube itself does not calculate coverage. Configure the SonarQube bundled action to import coverage results by either specifying a coverage file or running a unit test.
All CloudBees action repositories are listed at CloudBees, Inc. on GitHub. |
Inputs
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
No |
SonarQube Exclusion pattern to exclude matching files. |
|
String |
No |
SonarQube Inclusion pattern to include matching files. |
|
String |
No |
The file path of the third-party code coverage tool results. |
|
String |
Yes |
The language of your Git repository code base. Refer to Supported languages. |