configuration-as-code-plugin/demos/sonarqube
Victor Martinez fba6ff39ba Move YAML examples from integration tests to the demos (#1055)
Co-Authored-By: Tim Jacomb <t.jacomb@kainos.com>
Co-authored-by: Joseph Petersen <josephp90@gmail.com>
2019-09-25 08:52:51 +02:00
..
README.md Move YAML examples from integration tests to the demos (#1055) 2019-09-25 08:52:51 +02:00

README.md

configure sonar plugin

sample configuration

Sample configuration for the SonarQube plugin.

Below sample configuration willingly set all attributes values because of current issues with Sonar plugin 2.9 version. (cf. #982)

unclassified:
  sonarglobalconfiguration:                  # mandatory
    buildWrapperEnabled: true
    installations:                           # mandatory
      - name: "TEST"                         # id of the SonarQube configuration - to be used in jobs
        serverUrl: "http://url:9000"
        #credentialsId: token-sonarqube       # id of the credentials containing sonar auth token (since 2.9 version)
        serverAuthenticationToken: "token"   # for retrocompatibility with versions < 2.9
        mojoVersion: "mojoVersion"
        additionalProperties: "blah=blah"
        additionalAnalysisProperties: "additionalAnalysisProperties"
        triggers:
          skipScmCause: true
          skipUpstreamCause: true
          envVar: "envVar"

notes

You can add multiple installations.