xci: infra: bifrost: Define more XCI variables for bifrost jobs 67/54467/1
authorMarkos Chandras <mchandras@suse.de>
Mon, 26 Mar 2018 08:05:37 +0000 (09:05 +0100)
committerMarkos Chandras <mchandras@suse.de>
Mon, 26 Mar 2018 08:06:10 +0000 (09:06 +0100)
This is similar to eeb906a553d6ddf70ffc5af1acadb33a13ff5990 ("xci:
infra: bifrost: Set XCI_DISTRO if it's not defined") so we need to
define more XCI variables if we are running the standalone bifrost
jobs.

Change-Id: I112cfbfdda677174bdb0d0afef73f035c74cb79e
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/infra/bifrost/scripts/bifrost-provision.sh

index 2d77322..f9e8348 100755 (executable)
@@ -27,6 +27,9 @@ BIFROST_IRONIC_VERSION=${BIFROST_IRONIC_VERSION:-master}
 
 # This is normally passed from the XCI deployment script but
 # we also need it here for the bifrost jobs which run outside of XCI
+export XCI_PATH="${XCI_PATH:-$(git rev-parse --show-toplevel)}"
+# Declare our virtualenv
+export XCI_VENV="${XCI_VENV:-${XCI_PATH}/venv/}"
 export XCI_DISTRO=${XCI_DISTRO:-$(source /etc/os-release &>/dev/null || source /usr/lib/os-release &>/dev/null; echo ${ID,,})}
 
 # set UPPER_CONSTRAINTS_FILE since it is needed in order to limit libvirt-python to 4.0.0