X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fkvmfornfv%2Fkvmfornfv-download-artifact.sh;h=ea37eb29cc3c07515e6f43071af80de971059c72;hb=98564adb0ae50ef1bae113dccfbc0b994aa87ef3;hp=1f99f177b7367e4cc6b936b0752493c8ea3746b8;hpb=4a416669bb2b63729223e84b9d0d8723c05c42ee;p=releng.git diff --git a/jjb/kvmfornfv/kvmfornfv-download-artifact.sh b/jjb/kvmfornfv/kvmfornfv-download-artifact.sh index 1f99f177b..ea37eb29c 100755 --- a/jjb/kvmfornfv/kvmfornfv-download-artifact.sh +++ b/jjb/kvmfornfv/kvmfornfv-download-artifact.sh @@ -16,13 +16,21 @@ case "$JOB_TYPE" in echo "Downloading artifacts for the change $GERRIT_CHANGE_NUMBER. This could take some time..." GS_UPLOAD_LOCATION="gs://artifacts.opnfv.org/$PROJECT/review/$GERRIT_CHANGE_NUMBER" ;; + daily) + gsutil cp gs://$GS_URL/latest.properties $WORKSPACE/latest.properties + source $WORKSPACE/latest.properties + GS_UPLOAD_LOCATION=$OPNFV_ARTIFACT_URL + echo "Downloading artifacts from $GS_UPLOAD_LOCATION for daily run. This could take some time..." + ;; *) echo "Artifact download is not enabled for $JOB_TYPE jobs" exit 1 esac +GS_GUESTIMAGE_LOCATION="gs://artifacts.opnfv.org/$PROJECT/guest-image" /bin/mkdir -p $WORKSPACE/build_output gsutil cp -r $GS_UPLOAD_LOCATION/* $WORKSPACE/build_output > $WORKSPACE/gsutil.log 2>&1 +gsutil cp $GS_GUESTIMAGE_LOCATION/guest1.sha512 $WORKSPACE/build_output > $WORKSPACE/gsutil.log 2>&1 echo "--------------------------------------------------------" ls -al $WORKSPACE/build_output