summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-03-27 14:59:54 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-27 14:59:54 +0000
commit90cce1c977844b134ba90f89eefcf3d2ac12c5fc (patch)
tree3bda15dc3e4cca5ad00d830d48ed376f00b6d267
parent8f3c33c97acc5fc10a83e7cc7635da67e2460769 (diff)
parent8eb1639a8244924fdd6469d6835d285a5c60457d (diff)
Merge "xci: infra: bifrost: Define more XCI variables for bifrost jobs"
-rwxr-xr-xxci/infra/bifrost/scripts/bifrost-provision.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/xci/infra/bifrost/scripts/bifrost-provision.sh b/xci/infra/bifrost/scripts/bifrost-provision.sh
index 2d773227..f9e83480 100755
--- a/xci/infra/bifrost/scripts/bifrost-provision.sh
+++ b/xci/infra/bifrost/scripts/bifrost-provision.sh
@@ -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