You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: charts/jenkins/Chart.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
apiVersion: v2
2
2
name: jenkins
3
3
home: https://jenkins.io/
4
-
version: 3.0.12
4
+
version: 3.0.13
5
5
appVersion: 2.263.1
6
6
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.
Copy file name to clipboardExpand all lines: charts/jenkins/README.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ controller:
112
112
installPlugins: []
113
113
```
114
114
115
-
Notice: `installPlugins` is set to an empty list to disable plugin download.
115
+
Notice: `installPlugins` is set to an empty list to disable plugin download. In this case, the image `registry/my-jenkins:v1.2.3` must have the plugins specified as default value for [the `controller.installPlugins` directive](https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/VALUES_SUMMARY.md#jenkins-plugins) to ensure that the configuration side-car system works as expected.
116
116
117
117
In case you are using a private registry you can use 'imagePullSecretName' to specify the name of the secret to use when pulling the image:
118
118
@@ -133,14 +133,23 @@ If you are not using the provided ingress you can specify `controller.jenkinsUrl
133
133
134
134
### Configuration as Code
135
135
136
-
Jenkins Configuration as Code is now a standard component in the Jenkins project.
137
-
Add a key under configScripts for each configuration area, where each corresponds to a plugin or section of the UI.
138
-
The keys (prior to `|` character) are just labels, and can be any value.
139
-
They are only used to give the section a meaningful name.
136
+
Jenkins Configuration as Code (JCasC) is now a standard component in the Jenkins project.
137
+
To allow JCasC's configuration from the helm values, the plugin [`configuration-as-code`](https://plugins.jenkins.io/configuration-as-code/) must be installed in the Jenkins Controller's Docker image (which is the case by default as specified by the [default value of the directive `controller.installPlugins`](https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/VALUES_SUMMARY.md#jenkins-plugins)).
138
+
139
+
JCasc configuration is passed through Helm values under the key `controller.JCasC`.
140
+
The section ["Jenkins Configuration as Code (JCasC)" of the page "VALUES_SUMMARY.md"](https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/VALUES_SUMMARY.md#jenkins-configuration-as-code-jcasc) lists all the possible directives.
141
+
142
+
In particular, you may specify custom JCasC scripts by adding sub-key under the `controller.JCasC.configScripts` for each configuration area where each corresponds to a plugin or section of the UI.
143
+
144
+
The sub-keys (prior to `|` character) are only labels used to give the section a meaningful name.
140
145
The only restriction is they must conform to RFC 1123 definition of a DNS label, so they may only contain lowercase letters, numbers, and hyphens.
146
+
141
147
Each key will become the name of a configuration yaml file on the controller in `/var/jenkins_home/casc_configs` (by default) and will be processed by the Configuration as Code Plugin during Jenkins startup.
148
+
142
149
The lines after each `|` become the content of the configuration yaml file.
150
+
143
151
The first line after this is a JCasC root element, e.g. jenkins, credentials, etc.
152
+
144
153
Best reference is the Documentation link here: `https://<jenkins_url>/configuration-as-code`.
|`controller.installPlugins`| List of Jenkins plugins to install. If you don't want to install plugins set it to `[]`|`kubernetes:1.18.2 workflow-aggregator:2.6 credentials-binding:1.19 git:3.11.0 workflow-job:2.33`|
75
+
|`controller.installPlugins`| List of Jenkins plugins to install. If you don't want to install plugins set it to `[]`|`kubernetes:1.27.6 workflow-aggregator:2.6 git:4.4.5 configuration-as-code:1.46`|
76
76
|`controller.additionalPlugins`| List of Jenkins plugins to install in addition to those listed in controller.installPlugins |`[]`|
77
77
|`controller.initializeOnce`| Initialize only on first install. Ensures plugins do not get updated inadvertently. Requires `persistence.enabled` to be set to `true`. |`false`|
78
78
|`controller.overwritePlugins`| Overwrite installed plugins on start.|`false`|
0 commit comments