From 00af7552bb201511226f59f1e9bff03e54f41551 Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Thu, 2 Jun 2016 10:36:55 +0200 Subject: [PATCH] Only publish latest image to magnum Currently we were generating images daily, and timestamping it, also creating the latest one with fedora-atomic-f23-dib name. This was causing that directory was filled with images daily, growing in size. There is currently no cleanup process available, so this cannot be maintained. So instead of that, we will only publish the latest image, after validation, with a fixed name. Images are validated and not copied if they are not successful, so this will be safe to land. Change-Id: I7fcbb6bed034557969067366e1dc2f51e9fbb1b8 --- jenkins/jobs/magnum.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/jenkins/jobs/magnum.yaml b/jenkins/jobs/magnum.yaml index bc1f56035b..6aa170113a 100644 --- a/jenkins/jobs/magnum.yaml +++ b/jenkins/jobs/magnum.yaml @@ -80,16 +80,12 @@ ./openstack/magnum/magnum/elements/fedora-atomic/install_imagebuild_deps.sh - DATE=`date +%Y%m%d%H%M%S` - IMAGE_NAME="fedora-atomic${DATE}" + IMAGE_NAME="fedora-atomic-f23-dib" DIB_RELEASE="23" disk-image-create -x -o $WORKSPACE/$IMAGE_NAME fedora-atomic # validate image ./openstack/magnum/magnum/elements/fedora-atomic/validate_atomic_image.sh $WORKSPACE/${IMAGE_NAME}.qcow2 - # copy to latest and upload - cp $WORKSPACE/${IMAGE_NAME}.qcow2 $WORKSPACE/fedora-atomic-f23-dib.qcow2 - publishers: - scp: site: 'tarballs.openstack.org'