fix: set HOME to actual jenkins home
This commit is contained in:
parent
d56b907116
commit
d175bf3e08
@ -43,6 +43,7 @@ ENV XDG_RUNTIME_DIR=/home/$BUILDUSER/agent/xdg-run
|
|||||||
ENV BUILDAH_ISOLATION=chroot
|
ENV BUILDAH_ISOLATION=chroot
|
||||||
ENV _CONTAINERS_USERNS_CONFIGURED=""
|
ENV _CONTAINERS_USERNS_CONFIGURED=""
|
||||||
ENV TRIVY_TEMPLATE="@/home/jenkins/html.tpl"
|
ENV TRIVY_TEMPLATE="@/home/jenkins/html.tpl"
|
||||||
|
ENV HOME=/home/$BUILDUSER
|
||||||
|
|
||||||
USER $BUILDUSER
|
USER $BUILDUSER
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
mkdir -p $HOME/agent/xdg-run
|
mkdir -p $HOME/agent/xdg-run $HOME/agent/containers/run $HOME/agent/containers/storage
|
||||||
/usr/local/bin/jenkins-agent
|
/usr/local/bin/jenkins-agent
|
||||||
|
Loading…
Reference in New Issue
Block a user