sahara-ci-config/slave-scripts/integration-cleanup.sh
Vitaly Gridnev c13f558f8e remove tempest job
now we have monolithic tempest plugin which we are testing
as part of OpenStack infrastructure tests.

Change-Id: Ifb58d08cf13f5738d54f7b55ac9ac97c3655f77d
2016-08-30 10:13:34 +00:00

26 lines
842 B
Bash
Executable File

#!/bin/bash -e
cd sahara-ci-config/slave-scripts
sleep 20
source $JENKINS_HOME/credentials
set -x
job_type=$(echo $PREV_JOB | awk -F '-' '{ print $1 }')
export os_username=$os_username
export os_password=$os_password
export os_tenant_name=$os_tenant_name
if [[ "$HOST_NAME" =~ trusty-42 ]]; then
export os_auth_url="http://$OPENSTACK_HOST_LAB_42:5000/v2.0"
export os_image_endpoint="http://$OPENSTACK_HOST_LAB_42:8004/v1/$LAB_42_TENANT_ID"
host="c1"
else
export os_auth_url="http://$OPENSTACK_HOST_LAB_43:5000/v2.0"
export os_image_endpoint="http://$OPENSTACK_HOST_LAB_43:8004/v1/$LAB_43_TENANT_ID"
host="c2"
fi
if [[ $(echo $PREV_JOB | awk -F '-' '{ print $2 }') =~ ui ]]; then
python cleanup.py cleanup .*$PREV_BUILD-selenium.*
else
python cleanup.py cleanup-heat .*$host-$CHANGE_NUMBER-$CLUSTER_HASH.*
fi