From e25ea5e0169ada0bf18ad4eab8f6aa011513c8ee Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Tue, 18 Feb 2025 16:50:52 +0100 Subject: [PATCH] add variable $ENVINIT for onbuild tasks --- public_html/deployment/classes/project.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php index 3b7e633a..1d5157c7 100644 --- a/public_html/deployment/classes/project.class.php +++ b/public_html/deployment/classes/project.class.php @@ -1880,10 +1880,11 @@ class project extends base // -------------------------------------------------- // task#1726 - add environment $sSetEnv = '' - . 'export GIT_SSH="' . $this->_aConfig['appRootDir'] . '/shellscripts/gitsshwrapper.sh";' - . 'export DIR_SSH_KEYS="' . $this->_aConfig['dataDir'] . '/sshkeys";' - . 'export DIR_APPROOT="' . $sTempBuildDir . '";' - . 'export NVMINIT="' . $this->_aConfig['appRootDir'] . '/shellscripts/nvm_init.sh";' + . 'export GIT_SSH="' . $this->_aConfig['appRootDir'] . '/shellscripts/gitsshwrapper.sh"; ' + . 'export DIR_SSH_KEYS="' . $this->_aConfig['dataDir'] . '/sshkeys"; ' + . 'export DIR_APPROOT="' . $sTempBuildDir . '"; ' + . 'export NVMINIT="' . $this->_aConfig['appRootDir'] . '/shellscripts/nvm_init.sh"; ' + . 'export ENVINIT="' . $this->_aConfig['appRootDir'] . '/shellscripts/env_init.sh"; ' . (isset($this->_aConfig['build']['env']) ? $this->_aConfig['build']['env'] : ''); $sHookfile = $this->_aConfig['build']['hooks']['build-postclone']; -- GitLab