From 71ceac84eba513860a351163c6156ea025be06d0 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Thu, 7 Sep 2017 21:22:46 +0200 Subject: fuel-deploy.sh: Preserve env vars in sudo call SSH_KEY and other env vars set by Jenkins should be preserved when using sudo to invoke the Fuel deploy script. JIRA: FUEL-280 Change-Id: I495589a4a0519b3a5052cd5e5dc3122f9e49c215 Signed-off-by: Alexandru Avadanii --- jjb/fuel/fuel-deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jjb/fuel/fuel-deploy.sh b/jjb/fuel/fuel-deploy.sh index 18b2fd730..129f7532c 100755 --- a/jjb/fuel/fuel-deploy.sh +++ b/jjb/fuel/fuel-deploy.sh @@ -43,7 +43,7 @@ POD_NAME=${NODE_NAME/*-} LAB_CONFIG_URL=${LAB_CONFIG_URL:-'ssh://jenkins-ericsson@gerrit.opnfv.org:29418/securedlab'} # Fuel requires deploy script to be ran with sudo, Armband does not -SUDO=sudo +SUDO=sudo -E if [ "${PROJECT}" = 'fuel' ]; then # Fuel does not use any POD-specific configuration for virtual deploys if [[ "${NODE_NAME}" =~ "virtual" ]]; then -- cgit 1.2.3-korg