summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-04-20 14:10:53 -0400
committerFeng Pan <fpan@redhat.com>2016-04-20 14:39:21 -0400
commit7d807e9077c0049f3ccee2ba6675a7c14409f182 (patch)
treebc10374e58333f4437b413b557807fb4139a326f
parente49f91bd644b140a4ad7a2bf8c30faf9d5bdcfbb (diff)
Add PYTHONPATH for verify deployments
Also adds dependency for python34 package. Change-Id: I6d28a9e0a196c400aecc1d7bb17eefce6e611564 Signed-off-by: Feng Pan <fpan@redhat.com>
-rw-r--r--jjb/apex/apex.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml
index b48e81e8c..76586ffc5 100644
--- a/jjb/apex/apex.yml
+++ b/jjb/apex/apex.yml
@@ -847,6 +847,15 @@
DEPLOY_CMD="./deploy.sh -c ${WORKSPACE}/build -r ${WORKSPACE}/build/images/"
DEPLOY_FILE="${WORKSPACE}/config/deploy/${DEPLOY_SCENARIO}.yaml"
NETWORK_FILE="${WORKSPACE}/config/network/network_settings.yaml"
+ # Make sure python34 is installed
+ if ! rpm -q python34 > /dev/null; then
+ sudo yum install -y epel-release
+ if ! sudo yum install -y python34; then
+ echo "Failed to install python34"
+ exit 1
+ fi
+ fi
+ export PYTHONPATH=$PYTHONPATH:${WORKSPACE}/lib/python/apex
else
RPM_LIST=$RPM_INSTALL_PATH
for pkg in common undercloud opendaylight-sfc; do