From ff424114efb59a020af5463752d22794d4077ceb Mon Sep 17 00:00:00 2001 From: Vitaly Gridnev Date: Sat, 11 Jun 2016 14:13:10 +0000 Subject: [PATCH] fix gate jobs for building centos images Change-Id: I31c489737a0f5403b204dc065390822534b5dd6d --- tools/gate/build-images | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/gate/build-images b/tools/gate/build-images index 7430cf92..503c44dc 100755 --- a/tools/gate/build-images +++ b/tools/gate/build-images @@ -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