fix gate jobs for building centos images

Change-Id: I31c489737a0f5403b204dc065390822534b5dd6d
This commit is contained in:
Vitaly Gridnev 2016-06-11 14:13:10 +00:00
parent 3e1078e99e
commit ff424114ef
1 changed files with 8 additions and 4 deletions

View File

@ -1,16 +1,20 @@
#!/bin/bash -xe
PLUGIN=$1
export DIB_MIN_TMPFS=10
case "$PLUGIN" in
"cloudera")
# manually call each distro for cloudera, so we can cleanup
# cache and generated images from the previous run
# (saving space a bit)
for distro in ubuntu centos; do
tox -e venv -- sahara-image-create -x -u -p $PLUGIN -i $distro
find . -maxdepth 1 -name '*cloudera*.qcow2' -delete
sudo rm -rf ~/.cache/image-create
# NOTE(vgridnev): Number of versions are growing; testing only 2 latest
# releases of CDH
for version in 5.4 5.5; do
tox -e venv -- sahara-image-create -x -u -p $PLUGIN -i $distro -v $version
find . -maxdepth 1 -name '*cloudera*.qcow2' -delete
sudo rm -rf ~/.cache/image-create
done
done
;;
# this case is needed until we use ambari version <= 2.1.1