fix(jenkins): Use command to properly extend PATH instead of replacing it

This commit is contained in:
Claude AI
2026-01-05 17:22:24 +00:00
parent 5c851b455e
commit 07f583966f

View File

@@ -36,8 +36,14 @@ spec:
env: env:
- name: JENKINS_OPTS - name: JENKINS_OPTS
value: "--httpPort=8080" value: "--httpPort=8080"
- name: PATH - name: DOCKER_HOST
value: "/tmp/docker-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" value: "unix:///var/run/docker.sock"
command:
- sh
- -c
- |
export PATH="/tmp/docker-bin:$PATH"
exec /usr/local/bin/jenkins.sh
volumeMounts: volumeMounts:
- name: jenkins-home - name: jenkins-home
mountPath: /var/jenkins_home mountPath: /var/jenkins_home