From ff6b5ecbff1414dacf1e18af7ab0f70cb9d0a604 Mon Sep 17 00:00:00 2001 From: Ahmad Mahmoudi Date: Wed, 21 Oct 2020 14:56:14 +0000 Subject: [PATCH] (fix) Add -E for sudo to pick user env In 10_buid_scrip.sh script sudo call needs user's environment variables for proxy configuration, in case it is run behind a proxy. Change-Id: Ia084cba548e19340d25ef941e96336d9e420bec0 --- tools/gate/10_build_gate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gate/10_build_gate.sh b/tools/gate/10_build_gate.sh index 9ef3a2bfb..788239359 100755 --- a/tools/gate/10_build_gate.sh +++ b/tools/gate/10_build_gate.sh @@ -23,6 +23,6 @@ TMP_DIR=${TMP_DIR:-"$(dirname $(mktemp -u))"} ANSIBLE_HOSTS=${ANSIBLE_HOSTS:-"${TMP_DIR}/ansible_hosts"} PLAYBOOK_CONFIG=${PLAYBOOK_CONFIG:-"${TMP_DIR}/config.yaml"} -sudo ansible-playbook -i "$ANSIBLE_HOSTS" \ +sudo -E ansible-playbook -i "$ANSIBLE_HOSTS" \ playbooks/airship-airshipctl-build-gate.yaml \ -e @"$PLAYBOOK_CONFIG"