From 35a848da909543e7036185cf6e78b6693453e8ac Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Fri, 14 Mar 2025 14:37:02 -0400 Subject: [PATCH] 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) --- src/script/buildcontainer-setup.sh | 3 +++ 1 file changed, 3 insertions(+) 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 } -- 2.39.5