Skip to content

Commit 1962b66

Browse files
Update configured plugins (#147)
* Update configured plugins - Use lts version 2.249.3 - Update kubernetes, workflow-aggregator, git and configuration-as-code plugins. - remove plugins which are provided as dependency - Fail apply_config.sh script if an error occurs. - update image versions - Update chart description Signed-off-by: Torsten Walter <[email protected]>
1 parent 599f3cb commit 1962b66

File tree

8 files changed

+31
-29
lines changed

8 files changed

+31
-29
lines changed

charts/jenkins/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ Use the following links to reference issues, PRs, and commits prior to v2.6.0.
1212
The change log until v1.5.7 was auto-generated based on git commits.
1313
Those entries include a reference to the git commit to be able to get more details.
1414

15+
## 2.19.0
16+
17+
* Use lts version 2.249.3
18+
* Update kubernetes, workflow-aggregator, git and configuration-as-code plugins.
19+
* Fail apply_config.sh script if an error occurs.
20+
1521
## 2.18.2
1622

1723
Fix: `master.javaOpts` issue with quoted values

charts/jenkins/Chart.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
apiVersion: v1
22
name: jenkins
33
home: https://jenkins.io/
4-
version: 2.18.2
5-
appVersion: lts
6-
description: Open source continuous integration server. It supports multiple SCM tools
7-
including CVS, Subversion and Git. It can execute Apache Ant and Apache Maven-based
8-
projects as well as arbitrary scripts.
4+
version: 2.19.0
5+
appVersion: 2.249.3
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.
97
sources:
108
- https://github.com/jenkinsci/jenkins
11-
- https://github.com/jenkinsci/docker-jnlp-slave
9+
- https://github.com/jenkinsci/docker-inbound-agent
1210
- https://github.com/maorfr/kube-tasks
1311
- https://github.com/jenkinsci/configuration-as-code-plugin
1412
maintainers:

charts/jenkins/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Here is an example how that can be done:
8181

8282
```Dockerfile
8383
FROM jenkins/jenkins:lts
84-
RUN jenkins-plugin-cli --plugins kubernetes workflow-job workflow-aggregator credentials-binding git configuration-as-code
84+
RUN jenkins-plugin-cli --plugins kubernetes workflow-aggregator git configuration-as-code
8585
```
8686

8787
NOTE: If you want a reproducible build then you should specify a non floating tag for the image `jenkins/jenkins:2.249.3` and specify plugin versions.

charts/jenkins/templates/config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ data:
158158
</jenkins.CLI>
159159
{{- end }}
160160
apply_config.sh: |-
161+
set -e
161162
{{- if .Values.master.initializeOnce }}
162163
if [ -f {{ .Values.master.jenkinsHome }}/initialization-completed ]; then
163164
echo "master was previously initialized, refusing to re-initialize"
@@ -219,7 +220,7 @@ data:
219220
# Copy plugins to shared volume
220221
yes n | cp -i {{ .Values.master.jenkinsRef }}/plugins/* /var/jenkins_plugins/;
221222
{{- end }}
222-
{{- if .Values.master.scriptApproval }}
223+
{{- if and .Values.master.enableXmlConfig .Values.master.scriptApproval }}
223224
echo "configure script approval"
224225
{{- if .Values.master.overwriteConfig }}
225226
cp /var/jenkins_config/scriptapproval.xml {{ .Values.master.jenkinsHome }}/scriptApproval.xml;

charts/jenkins/tests/config-test.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ tests:
1818
- equal:
1919
path: data.apply_config\.sh
2020
value: |-
21+
set -e
2122
echo "applying Jenkins configuration"
2223
echo "disable Setup Wizard"
2324
# Prevent Setup Wizard when JCasC is enabled
@@ -40,19 +41,18 @@ tests:
4041
- equal:
4142
path: data.plugins\.txt
4243
value: |-
43-
kubernetes:1.25.7
44-
workflow-job:2.39
44+
kubernetes:1.27.6
4545
workflow-aggregator:2.6
46-
credentials-binding:1.23
47-
git:4.2.2
48-
configuration-as-code:1.43
46+
git:4.4.5
47+
configuration-as-code:1.46
4948
- it: no plugins
5049
set:
5150
master.installPlugins: []
5251
asserts:
5352
- equal:
5453
path: data.apply_config\.sh
5554
value: |-
55+
set -e
5656
echo "applying Jenkins configuration"
5757
echo "disable Setup Wizard"
5858
# Prevent Setup Wizard when JCasC is enabled
@@ -71,6 +71,7 @@ tests:
7171
- equal:
7272
path: data.apply_config\.sh
7373
value: |-
74+
set -e
7475
echo "applying Jenkins configuration"
7576
echo "disable Setup Wizard"
7677
# Prevent Setup Wizard when JCasC is enabled
@@ -93,10 +94,8 @@ tests:
9394
- equal:
9495
path: data.plugins\.txt
9596
value: |-
96-
kubernetes:1.25.7
97-
workflow-job:2.39
97+
kubernetes:1.27.6
9898
workflow-aggregator:2.6
99-
credentials-binding:1.23
100-
git:4.2.2
101-
configuration-as-code:1.43
99+
git:4.4.5
100+
configuration-as-code:1.46
102101
kubernetes-credentials-provider

charts/jenkins/tests/jcasc-config-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ tests:
5858
- envVar:
5959
key: "JENKINS_URL"
6060
value: "http://RELEASE-NAME-jenkins.default.svc.cluster.local:8080/"
61-
image: "jenkins/inbound-agent:4.3-4"
61+
image: "jenkins/inbound-agent:4.6-1"
6262
privileged: "false"
6363
resourceLimitCpu: 512m
6464
resourceLimitMemory: 512Mi
@@ -171,7 +171,7 @@ tests:
171171
- envVar:
172172
key: "JENKINS_URL"
173173
value: "http://RELEASE-NAME-jenkins.controller-namespace.svc.cluster.local:8080/"
174-
image: "jenkins/inbound-agent:4.3-4"
174+
image: "jenkins/inbound-agent:4.6-1"
175175
privileged: "false"
176176
resourceLimitCpu: 512m
177177
resourceLimitMemory: 512Mi

charts/jenkins/tests/jenkins-master-deployment-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tests:
4545
template:
4646
metadata:
4747
annotations:
48-
checksum/config: dca52edd4e45bf3ea5de7a168d17c5bd2b7010dd376344760cee9d683b0c3d66
48+
checksum/config: b658db5fded177557794338be19575f0d99995b5156fddbaae6cd78b7dfcedb2
4949
labels:
5050
app.kubernetes.io/component: jenkins-master
5151
app.kubernetes.io/instance: my-release
@@ -140,7 +140,7 @@ tests:
140140
value: POST
141141
- name: REQ_RETRY_CONNECT
142142
value: "10"
143-
image: kiwigrid/k8s-sidecar:0.1.193
143+
image: kiwigrid/k8s-sidecar:0.1.275
144144
imagePullPolicy: IfNotPresent
145145
name: jenkins-sc-config
146146
resources: {}

charts/jenkins/values.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,10 @@ master:
193193

194194
# List of plugins to be install during Jenkins master start
195195
installPlugins:
196-
- kubernetes:1.25.7
197-
- workflow-job:2.39
196+
- kubernetes:1.27.6
198197
- workflow-aggregator:2.6
199-
- credentials-binding:1.23
200-
- git:4.2.2
201-
- configuration-as-code:1.43
198+
- git:4.4.5
199+
- configuration-as-code:1.46
202200

203201
# List of plugins to install in addition to those listed in master.installPlugins
204202
additionalPlugins: []
@@ -272,7 +270,7 @@ master:
272270
# jcasc changes will cause a reboot and will only be applied at the subsequent start-up. Auto-reload uses the
273271
# http://<jenkins_url>/reload-configuration-as-code endpoint to reapply config when changes to the configScripts are detected.
274272
enabled: true
275-
image: kiwigrid/k8s-sidecar:0.1.193
273+
image: kiwigrid/k8s-sidecar:0.1.275
276274
imagePullPolicy: IfNotPresent
277275
resources: {}
278276
# limits:
@@ -506,7 +504,7 @@ master:
506504
agent:
507505
enabled: true
508506
image: "jenkins/inbound-agent"
509-
tag: "4.3-4"
507+
tag: "4.6-1"
510508
workingDir: "/home/jenkins"
511509
customJenkinsLabels: []
512510
# name of the secret to be used for image pulling

0 commit comments

Comments
 (0)