Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #209 from mrotrebor/bugfix/install_plugins_configmap
Browse files Browse the repository at this point in the history
Bug fixed at install_plugins.sh in sonar-sonarqube-install-plugins configMap
  • Loading branch information
rjkernick authored Nov 4, 2020
2 parents cb87850 + 65168e2 commit 0542566
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/sonarqube/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: sonarqube
description: SonarQube is an open sourced code quality scanning tool
version: 9.1.1
version: 9.1.2
appVersion: 8.5.1-community
keywords:
- coverage
Expand Down
5 changes: 3 additions & 2 deletions charts/sonarqube/templates/install-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ data:
export no_proxy={{ .Values.plugins.noProxy }}
{{- end }}
{{- if .Values.plugins.install }}
rm {{ .Values.sonarqubeFolder }}/extensions/downloads/*
{{ range $index, $val := .Values.plugins.install }}echo {{ $val | quote }} >> {{ $.Values.sonarqubeFolder }}/extensions/downloads/list{{ end }}
[ -e {{ .Values.sonarqubeFolder }}/extensions/downloads/* ] && rm {{ .Values.sonarqubeFolder }}/extensions/downloads/*
{{ range $index, $val := .Values.plugins.install }}
echo {{ $val | quote }} >> {{ $.Values.sonarqubeFolder }}/extensions/downloads/list{{ end }}
cat {{ .Values.sonarqubeFolder }}/extensions/downloads/list | xargs -n 1 -P 8 wget --directory-prefix {{ .Values.sonarqubeFolder }}/extensions/downloads --no-verbose
rm {{ .Values.sonarqubeFolder }}/extensions/downloads/list
{{- end }}
Expand Down

0 comments on commit 0542566

Please sign in to comment.