summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2016-09-07 13:58:15 +0200
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>2016-09-07 14:03:12 +0200
commit855b5927c98ea67fda0cec1fedd76aea66b96414 (patch)
treeb5f74efdbef28962dbe03d40e0e9deecc8771b75 /jjb
parent610025be08333213e1bfdbc90ff21eaf62e67839 (diff)
kvmfornfv: Use correct url for uploading artifacts
Change-Id: Ia3f1f37dfec0c8e73328e048fab8f9b8892e8c66 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'jjb')
-rwxr-xr-xjjb/kvmfornfv/kvmfornfv-upload-artifact.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/jjb/kvmfornfv/kvmfornfv-upload-artifact.sh b/jjb/kvmfornfv/kvmfornfv-upload-artifact.sh
index 422626ead..6f8fff3ff 100755
--- a/jjb/kvmfornfv/kvmfornfv-upload-artifact.sh
+++ b/jjb/kvmfornfv/kvmfornfv-upload-artifact.sh
@@ -35,6 +35,7 @@ esac
echo "OPNFV_ARTIFACT_URL=$GS_UPLOAD_LOCATION"
echo "OPNFV_BUILD_URL=$BUILD_URL"
) > $WORKSPACE/opnfv.properties
+source $WORKSPACE/opnfv.properties
# upload artifacts
gsutil cp -r $WORKSPACE/build_output/* $GS_UPLOAD_LOCATION > $WORKSPACE/gsutil.log 2>&1
@@ -45,11 +46,11 @@ gsutil -m setmeta -r \
# upload metadata file for the artifacts built by daily job
if [[ "$JOB_TYPE" == "daily" ]]; then
gsutil cp $WORKSPACE/opnfv.properties $GS_UPLOAD_LOCATION/opnfv.properties > $WORKSPACE/gsutil.log 2>&1
- gsutil cp $WORKSPACE/opnfv.properties $GS_URL/latest.properties > $WORKSPACE/gsutil.log 2>&1
+ gsutil cp $WORKSPACE/opnfv.properties gs://$GS_URL/latest.properties > $WORKSPACE/gsutil.log 2>&1
gsutil -m setmeta -r \
-h "Cache-Control:private, max-age=0, no-transform" \
- $GS_UPLOAD_LOCATION/opnfv-${OPNFV_ARTIFACT_VERSION}.properties \
- $GS_URL/latest.properties > /dev/null 2>&1
+ $GS_UPLOAD_LOCATION/opnfv.properties \
+ gs://$GS_URL/latest.properties > /dev/null 2>&1
fi
gsutil ls $GS_UPLOAD_LOCATION > /dev/null 2>&1