fix: set HOME to actual jenkins home

This commit is contained in:
Stefan Reimer 2022-11-18 14:15:08 +01:00
parent d56b907116
commit d175bf3e08
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ ENV XDG_RUNTIME_DIR=/home/$BUILDUSER/agent/xdg-run
ENV BUILDAH_ISOLATION=chroot
ENV _CONTAINERS_USERNS_CONFIGURED=""
ENV TRIVY_TEMPLATE="@/home/jenkins/html.tpl"
ENV HOME=/home/$BUILDUSER
USER $BUILDUSER

View File

@ -1,4 +1,4 @@
#!/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