fix(jenkins): Use command to properly extend PATH instead of replacing it
This commit is contained in:
@@ -36,8 +36,14 @@ spec:
|
||||
env:
|
||||
- name: JENKINS_OPTS
|
||||
value: "--httpPort=8080"
|
||||
- name: PATH
|
||||
value: "/tmp/docker-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
- name: DOCKER_HOST
|
||||
value: "unix:///var/run/docker.sock"
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
export PATH="/tmp/docker-bin:$PATH"
|
||||
exec /usr/local/bin/jenkins.sh
|
||||
volumeMounts:
|
||||
- name: jenkins-home
|
||||
mountPath: /var/jenkins_home
|
||||
|
||||
Reference in New Issue
Block a user