From 67d8bac7b2a97531ad465f275747b3dc455d4fe4 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Mon, 17 Jul 2017 21:35:20 +0200 Subject: armband-deploy.sh: Inherit env vars for sudo Previous commit adding sudo for ci/deploy.sh call breaks Armband deploys, since ci/deploy.sh relies on $WORKSPACE env var being set. Change-Id: I948c8e3c00b430e0c186c0a727e1b7e027d7a089 Signed-off-by: Alexandru Avadanii --- jjb/armband/armband-deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jjb/armband/armband-deploy.sh') diff --git a/jjb/armband/armband-deploy.sh b/jjb/armband/armband-deploy.sh index 29c04fd3d..b11500434 100755 --- a/jjb/armband/armband-deploy.sh +++ b/jjb/armband/armband-deploy.sh @@ -93,7 +93,7 @@ else fi # construct the command -DEPLOY_COMMAND="sudo $WORKSPACE/ci/deploy.sh -b ${LAB_CONFIG_URL} \ +DEPLOY_COMMAND="sudo -E $WORKSPACE/ci/deploy.sh -b ${LAB_CONFIG_URL} \ -l $LAB_NAME -p $POD_NAME -s $DEPLOY_SCENARIO -i file://${ISO_FILE} \ -H -B ${DEFAULT_BRIDGE:-pxebr} -S $TMPDIR -L $WORKSPACE/$FUEL_LOG_FILENAME \ ${DEPLOY_CACHE}" -- cgit 1.2.3-korg