summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-09-07 21:22:46 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-09-07 21:22:46 +0200
commit71ceac84eba513860a351163c6156ea025be06d0 (patch)
treeef07b8ace64a9150def44896a13e7500a09e752e /jjb
parentc906c6389a0cdde9db749f95964376384cab7bc6 (diff)
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 <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'jjb')
-rwxr-xr-xjjb/fuel/fuel-deploy.sh2
1 files changed, 1 insertions, 1 deletions
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