Drone plugins > SonarQube

This plugin can scan your code quality and post the analysis report to your SonarQube server. SonarQube (previously called Sonar), is an open source code quality management platform.

Example

kind: pipeline
name: default

steps:
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
    sonar_host:
      from_secret: sonar_host
    sonar_token:
      from_secret: sonar_token

Properties

  • sonar_host

    stringrequired

    Hostname of the sonar server.

    Default: none

  • sonar_token

    stringrequired

    Access token.

    Secret recommended

    Default: none