Skip to content

Commit 8a5e0a0

Browse files
committed
add new values and params for SonarQube private projects
1 parent c16c199 commit 8a5e0a0

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

configuration-sample/ods-core.env.sample

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ SONAR_SCAN_ENABLED="true"
179179
SONAR_SCAN_EXCLUSIONS=""
180180
SONAR_SCAN_NEXUS_REPOSITORY=leva-documentation
181181
SONAR_SCAN_ALERT_EMAILS=
182+
SONAR_SCAN_PROJECTS_PRIVATE="false"
183+
SONAR_SCAN_ACCOUNT=cd-user-with-password
184+
182185

183186
#########
184187
# Jira #

sonarqube/chart/templates/cm-scan.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ metadata:
55
name: {{ .Values.global.appName }}-scan
66
apiVersion: v1
77
data:
8-
alertEmails: {{ .Values.scan.sonaralertEmails }}
8+
alertEmails: {{ .Values.scan.sonarAlertEmails }}
99
enabled: {{ .Values.scan.sonarEnabled | quote }}
1010
exclusions: {{ .Values.scan.sonarExclusions | quote }}
1111
nexusRepository: {{ .Values.scan.sonarNexusRepository }}
12+
sonarQubeAccount: {{ .Values.scan.sonarQubeAccount }}
13+
sonarQubeProjectsPrivate: {{ .Values.scan.sonarQubeProjectsPrivate | quote }}

sonarqube/chart/values.yaml.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,6 @@ scan:
5050
sonarEnabled: $SONAR_SCAN_ENABLED
5151
sonarExclusions: $SONAR_SCAN_EXCLUSIONS
5252
sonarNexusRepository: $SONAR_SCAN_NEXUS_REPOSITORY
53-
sonaralertEmails: $SONAR_SCAN_ALERT_EMAILS
53+
sonarAlertEmails: $SONAR_SCAN_ALERT_EMAILS
54+
sonarProjectsPrivate: $SONAR_SCAN_PROJECTS_PRIVATE
55+
sonarQubeAccount: $SONAR_SCAN_ACCOUNT

0 commit comments

Comments
 (0)