diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2015-11-17 23:33:43 +0100 |
---|---|---|
committer | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2015-11-20 13:09:23 +0000 |
commit | 5a7a6a6c48511dd8d53defe64609edc88d4999bb (patch) | |
tree | f3eaeadb6eac2a577204b3c291966d026ec74a48 /jjb/fuel/fuel-download-artifact.sh | |
parent | c8620d29b3812fe3982fb50a2ae591faae4d8f51 (diff) |
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 <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'jjb/fuel/fuel-download-artifact.sh')
-rwxr-xr-x | jjb/fuel/fuel-download-artifact.sh | 9 |
1 files changed, 7 insertions, 2 deletions
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 |