From: John Mulligan Date: Fri, 14 Mar 2025 18:37:02 +0000 (-0400) Subject: script/buildcontainer-setup: set JENKINS_HOME while building image X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f0096754c507cdf70d04fd057055484ddaa9bbb6;p=ceph.git script/buildcontainer-setup: set JENKINS_HOME while building image Set the JENKINS_HOME environment variable while building the builder image. This is needed because parts of scripts like run-make.sh and install-deps.sh key off of this variable. Since we want to be able to use the build container to build, run "make check" and the like, we want that environment to be as similar to the jenkins CI environment as we can make it. Signed-off-by: John Mulligan (cherry picked from commit f026709b1f7e323908eaf8f4582ae1bd1ed7a323) --- diff --git a/src/script/buildcontainer-setup.sh b/src/script/buildcontainer-setup.sh index 115369e003e..6a4eb12aa9b 100644 --- a/src/script/buildcontainer-setup.sh +++ b/src/script/buildcontainer-setup.sh @@ -2,6 +2,9 @@ install_container_deps() { source ./src/script/run-make.sh + # set JENKINS_HOME in order to have the build container look as much + # like an existing jenkins build environment as possible + export JENKINS_HOME=/ceph prepare }