summaryrefslogtreecommitdiffstats
path: root/xci/infra
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-03-26 09:05:37 +0100
committerMarkos Chandras <mchandras@suse.de>2018-03-26 09:06:10 +0100
commit8eb1639a8244924fdd6469d6835d285a5c60457d (patch)
treee5106c6a3b2f9569a6206d7dc6771750f072aef0 /xci/infra
parentb31d148b5ae1216b2a209784ce11858caeddae4c (diff)
xci: infra: bifrost: Define more XCI variables for bifrost jobs
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>
Diffstat (limited to 'xci/infra')
-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