diff --git a/charts/jenkins/Chart.yaml b/charts/jenkins/Chart.yaml index 81ce34921..a9e19b846 100644 --- a/charts/jenkins/Chart.yaml +++ b/charts/jenkins/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: jenkins home: https://jenkins.io/ -version: 4.3.4 +version: 4.3.5 appVersion: 2.375.3 description: Jenkins - Build great things at any scale! The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project. sources: diff --git a/charts/jenkins/templates/config.yaml b/charts/jenkins/templates/config.yaml index b94c79f5d..521996eaa 100644 --- a/charts/jenkins/templates/config.yaml +++ b/charts/jenkins/templates/config.yaml @@ -16,6 +16,9 @@ data: {{- if .Values.controller.initializeOnce }} if [ -f {{ .Values.controller.jenkinsHome }}/initialization-completed ]; then echo "controller was previously initialized, refusing to re-initialize" + {{- if not .Values.controller.sidecars.configAutoReload.enabled }} + rm -rf {{ .Values.controller.jenkinsHome }}/casc_configs/* + {{- end }} exit 0 fi {{- end }}