Fix promote script and add logs
Promotion script used wrong location of instack.qcow2 image and didn't clean old repos because of exiting on error. Also add logging to cron job for easy investigation of last run. Change-Id: I610ea96dd2d57829f4c4d6645108954802bd5571
This commit is contained in:
parent
3d3e6f4019
commit
15e1e3de17
|
@ -48,6 +48,6 @@ cron {"mirror-repos":
|
|||
}
|
||||
|
||||
cron {"promote":
|
||||
command => "timeout 10m /opt/stack/tripleo-ci/scripts/mirror-server/promote.sh current-tripleo periodic-tripleo-ci-centos-7-ovb-ha periodic-tripleo-ci-centos-7-ovb-nonha",
|
||||
command => "timeout 10m /opt/stack/tripleo-ci/scripts/mirror-server/promote.sh current-tripleo periodic-tripleo-ci-centos-7-ovb-ha periodic-tripleo-ci-centos-7-ovb-nonha &>/var/log/last_promotion.log",
|
||||
minute => "40"
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ for DIR in $DIRS2TEST ; do
|
|||
set -x
|
||||
ln -snf $DIR $CURRENT
|
||||
# OVB based CI jobs no longer create a instack image, keep an old one in place until quickstart uses overcloud-full instead
|
||||
cp /var/www/html/builds/current-tripleo-20160630/instack.qcow2* /var/www/html/builds/current-tripleo/
|
||||
cp /var/www/html/instack/instack.qcow2* /var/www/html/builds/current-tripleo/ ||:
|
||||
break
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue