KVMFORNFV: Common build packages for daily test cases 59/34759/1
authorkalyanreddy <reddyx.gundarapu@intel.com>
Mon, 15 May 2017 09:42:11 +0000 (15:12 +0530)
committerkalyanreddy <reddyx.gundarapu@intel.com>
Mon, 15 May 2017 09:42:11 +0000 (15:12 +0530)
This patch is used to upload the metadata file only for the artifacts
built by daily build job so that both the kvmfornfv cyclictest and
packet forwarding test cases will download the same artifacts uploaded
by the daily build job for testing on the test pod.

Change-Id: Ic2d58eca4fc86a257877159bb6910a2d8e8f3887
Signed-off-by: Gundarapu Kalyan Reddy <reddyx.gundarapu@intel.com>
jjb/kvmfornfv/kvmfornfv-upload-artifact.sh

index 56fb4f9..fb4256c 100755 (executable)
@@ -58,7 +58,7 @@ else
 fi
 
 # upload metadata file for the artifacts built by daily job
-if [[ "$JOB_TYPE" == "daily" ]]; then
+if [[ "$JOB_TYPE" == "daily" && "$PHASE" == "build" ]]; then
     gsutil cp $WORKSPACE/opnfv.properties $GS_UPLOAD_LOCATION/opnfv.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 \