added repo
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "sonarqube.fullname" . }}-install-plugins
|
||||
labels:
|
||||
app: {{ template "sonarqube.name" . }}
|
||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
data:
|
||||
install_plugins.sh: |-
|
||||
{{- if .Values.plugins.install }}
|
||||
# rm -f {{ .Values.sonarqubeFolder }}/extensions/plugins/*
|
||||
cd {{ .Values.sonarqubeFolder }}/extensions/plugins
|
||||
{{- range $index, $val := .Values.plugins.install }}
|
||||
curl {{ if $.Values.plugins.noCheckCertificate }}--insecure{{ end }} {{ if $.Values.plugins.netrcCreds }}--netrc-file /root/.netrc{{ end }} -fsSLO {{ $val | quote }}
|
||||
if [ $(find . -type f | grep -c zip) == 1 ]
|
||||
then
|
||||
ls -al
|
||||
unzip *.zip
|
||||
files_to_remove=$(find . -mindepth 1 -type f ! -name "*.jar" -o -type d)
|
||||
rm -rf $files_to_remove
|
||||
ls -al
|
||||
# elif [ $(find . -type f | grep -c sh) == 1 ]
|
||||
# then
|
||||
# ls -al
|
||||
# chmod +x *.sh
|
||||
# sh *.sh
|
||||
# rm -rf *.sh
|
||||
# ls -al
|
||||
fi
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user