]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
script/buildcontainer-setup: set JENKINS_HOME while building image
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 14 Mar 2025 18:37:02 +0000 (14:37 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Thu, 31 Jul 2025 21:58:47 +0000 (17:58 -0400)
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 <jmulligan@redhat.com>
(cherry picked from commit f026709b1f7e323908eaf8f4582ae1bd1ed7a323)

src/script/buildcontainer-setup.sh

index 115369e003e284566b165fb7f60c7ca4909129f7..6a4eb12aa9bab27a9ebab7a8590d7d9073828990 100644 (file)
@@ -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
 }