[stable/jenkins] Update init script to configure ssh key correctly. (#17896)

* Modifying the  script to behave in the same way it did on v1.6.0.

Signed-off-by: Gustavo Bosmak <gustavo.bosmak@gmail.com>

* Update init script to configure ssh key correctly.

Signed-off-by: Gustavo Bosmak <gustavo.bosmak@gmail.com>
This commit is contained in:
Bosmak
2019-10-11 08:07:41 -07:00
committed by Kubernetes Prow Robot
parent 26861281ab
commit 7798fb5f9b
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -6,6 +6,10 @@ numbering uses [semantic versioning](http://semver.org).
NOTE: The change log until version 1.5.7 is auto generated based on git commits. Those include a reference to the git commit to be able to get more details.
## 1.7.5
Fixed an issue where the JCasC won't run if JCasC auto-reload is enabled [issue #17135](https://github.com/helm/charts/issues/17135)
## 1.7.4
Comments out JCasC example of jenkins.systemMessage so that it can be used by end users. Previously, an attempt to set systemMessage causes Jenkins to startup, citing duplicate JCasC settings for systemMessage [issue #13333](https://github.com/helm/charts/issues/13333)
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: jenkins
home: https://jenkins.io/
version: 1.7.4
version: 1.7.5
appVersion: lts
description: Open source continuous integration server. It supports multiple SCM tools
including CVS, Subversion and Git. It can execute Apache Ant and Apache Maven-based
+1 -1
View File
@@ -298,7 +298,7 @@ data:
import jenkins.security.*
import hudson.model.User
import jenkins.model.Jenkins
User user = User.get("{{ .Values.master.adminUser | default "admin" }}", false)
User user = User.getOrCreateByIdOrFullName("{{ .Values.master.adminUser | default "admin" }}")
if (user == null) {
System.err.println("ERROR: user '{{ .Values.master.adminUser | default "admin" }}' not found! Can't configure SSH key which is needed to reload JCasC config!")
} else {