Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion demos/sonarqube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ credentials:
secret: "secret value"
description: "Sonar token"

tool:
sonarRunnerInstallation:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

installations:
- name: "SonarQube Scanner"
properties:
- installSource:
installers:
- sonarRunnerInstaller:
id: "7.3.0.5189"

unclassified:
sonarglobalconfiguration: # mandatory
buildWrapperEnabled: true
Expand All @@ -36,4 +46,6 @@ unclassified:

## notes

You can add multiple installations.
- You can add multiple SonarQube server installations
- `tool:sonarRunnerInstallation` installs the SonarQube Scanner tool
- The `id` in sonarRunnerInstaller refers to the scanner version to install
31 changes: 31 additions & 0 deletions demos/sonarqube/sonar-with-scanner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# SonarQube Plugin Configuration with Scanner Tool Installation

credentials:
system:
domainCredentials:
- credentials:
- string:
scope: GLOBAL
id: "sonarqube-token"
secret: "${SONAR_TOKEN}"
description: "SonarQube Access Token"

tool:
sonarRunnerInstallation:
installations:
- name: "SonarQube Scanner"
properties:
- installSource:
installers:
- sonarRunnerInstaller:
id: "7.3.0.5189"

unclassified:
sonarglobalconfiguration:
buildWrapperEnabled: true
installations:
- name: "sq1"
serverUrl: "http://sonarqube:9000"
credentialsId: "sonarqube-token"

Loading