From 5a7a6a6c48511dd8d53defe64609edc88d4999bb Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Tue, 17 Nov 2015 23:33:43 +0100 Subject: Upload and download Fuel ISOs in scope of fuel-merge jobs This is the first step towards enabling virtual deployments for Fuel merge jobs. This change introduces - storing the ISOs built by the merge jobs on OPNFV Artifact Repository - downloading ISOs built by the merge jobs for virtual deployments Once this gets merged, a second change will be sent for enabling the virtual deployments using downloaded ISO. Change-Id: I726f58d914c7c216e1ffe626c2ca250f56d08222 Signed-off-by: Fatih Degirmenci --- jjb/fuel/fuel-download-artifact.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'jjb/fuel/fuel-download-artifact.sh') diff --git a/jjb/fuel/fuel-download-artifact.sh b/jjb/fuel/fuel-download-artifact.sh index 6eb1ba463..7ebc0d6d0 100755 --- a/jjb/fuel/fuel-download-artifact.sh +++ b/jjb/fuel/fuel-download-artifact.sh @@ -3,8 +3,13 @@ set -o errexit set -o nounset set -o pipefail -# get the latest.properties file in order to get info regarding latest artifact -curl -s -o $WORKSPACE/latest.properties http://$GS_URL/latest.properties +if [[ $GERRIT_EVENT_TYPE = "change-merged" ]]; then + # get the properties file for the Fuel ISO built for a merged change + curl -s -o $WORKSPACE/opnfv-gerrit-$GERRIT_CHANGE_NUMBER.properties http://$GS_URL/latest.properties +else + # get the latest.properties file in order to get info regarding latest artifact + curl -s -o $WORKSPACE/latest.properties http://$GS_URL/latest.properties +fi # check if we got the file [[ -f latest.properties ]] || exit 1 -- cgit 1.2.3-korg