fix(jenkins): Use command to properly extend PATH instead of replacing it
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user