Kaholo Plugin for SonarQube. This plugin is wrapping SonarQube CLI. You can download it from here.
Settings
- Sonar Scanner (String) Optional – The cli command to execute sonar-scanner. default is “sonar-sacanner”. Can specify path to .bat file for example.
- Host URL (String) Optional – The URL to the default SonarQube server.
- CLI Token (Vault) Required For Run Test – The token to authenticate when running the CLI.
- REST API Token (Vault) Required For Create Project – The token to authenticate with in API requests.
Method: Run Test
Run sonar-scanner on provided project.
Parameters:
- Host URL (String) Optional – The URL to the SonarQube server. Required in case wasn’t provided in settings.
- Login Optional – The token to authenticate when running the CLI. Required in case wasn’t provided in settings.
- Working Directory (String) Optional – The working directory to run this command from.
- Project Key (String) Required – Key of the project. Maximum length 400.
- Sources Path (Text) Required – Path to the directory containing main source files to test. Can enter multiple values by separating each with a new line.
- Additional Arguments (Text) Optional – Any other arguments to send to the CLI. Can Enter multiple values by separating each with new line.
Method: Create Project
This method will create a new project. This method is wrapping SonarQube RestAPI. You can see the API documentation here.
Parameters:
- Host URL (String) Optional – The URL to the SonarQube server. Required in case wasn’t provided in settings.
- Project Name (String) Required – Name of the project. If name is longer than 500, it is abbreviated.
- Organization (String) Required – If you are using Git Repo you should also provide the Organization name.
- Project Key (String) Required – Key of the project. Maximum length 400.
- Visibility (String) Optional – Whether the created project should be visible to everyone, or only specific user/groups. If no visibility is specified, the default project visibility of the organization will be used.\