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