diff options
author | 2017-06-06 01:56:21 +0000 | |
---|---|---|
committer | 2017-06-06 01:56:21 +0000 | |
commit | 66b066c839641cfd7a4604af6f111d07dc50f595 (patch) | |
tree | 900f20ff43139c036332f2d650d3e10a63e6846f /jjb/compass4nfv/compass-download-artifact.sh | |
parent | a3bc239313e67cab44d8bc64c32534ac9c1a0886 (diff) | |
parent | a92e50f2620670cd8d90421c31bd913bf3e941a4 (diff) |
Merge "set the openstack version for branch"
Diffstat (limited to 'jjb/compass4nfv/compass-download-artifact.sh')
-rw-r--r-- | jjb/compass4nfv/compass-download-artifact.sh | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/jjb/compass4nfv/compass-download-artifact.sh b/jjb/compass4nfv/compass-download-artifact.sh index 5a63c4aeb..c09a70c8b 100644 --- a/jjb/compass4nfv/compass-download-artifact.sh +++ b/jjb/compass4nfv/compass-download-artifact.sh @@ -18,12 +18,18 @@ curl -s -o $BUILD_DIRECTORY/latest.properties http://$GS_URL/latest.properties # source the file so we get OPNFV vars source $BUILD_DIRECTORY/latest.properties -# download the file -curl -s -o $BUILD_DIRECTORY/compass.iso http://$OPNFV_ARTIFACT_URL > gsutil.iso.log 2>&1 - -# list the file -ls -al $BUILD_DIRECTORY/compass.iso +if [[ "$BRANCH" == 'danube' ]]; then + # download the file + curl -s -o $BUILD_DIRECTORY/compass.iso http://$OPNFV_ARTIFACT_URL > gsutil.iso.log 2>&1 + # list the file + ls -al $BUILD_DIRECTORY/compass.iso +else + # download the file + curl -s -o $BUILD_DIRECTORY/compass.tar.gz http://$OPNFV_ARTIFACT_URL > gsutil.tar.gz.log 2>&1 + # list the file + ls -al $BUILD_DIRECTORY/compass.tar.gz +fi echo echo "--------------------------------------------------------" -echo "Done!"
\ No newline at end of file +echo "Done!" |