RPM: Apex: Add git hash substring to file name to create version ID of RPMs in artifa... 73/15973/3
authorThomas F Herbert <therbert@redhat.com>
Thu, 23 Jun 2016 08:30:43 +0000 (04:30 -0400)
committerThomas F Herbert <therbert@redhat.com>
Thu, 30 Jun 2016 16:21:24 +0000 (12:21 -0400)
Change-Id: Ibe6e15bedcb6e481319579dbcd69fe675349b929
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
ci/upload_artifacts.sh

index 45128bd..86774e8 100755 (executable)
@@ -22,12 +22,13 @@ set -o pipefail
 echo "Uploading the OVS and DPDK RPM artifacts. "
 echo "-----------------------------------------"
 echo
+gitver=`git log --pretty=oneline -n1|cut -c1-8`
 
 cd $TMP_RELEASE_DIR
 for i in `ls *.rpm`
 do
-    echo copying $i to gs://$GS_URL/ovs4opnfv
-    gsutil cp $TMP_RELEASE_DIR/$i gs://$GS_URL/ovs4opnfv-$i
+    echo copying $i to gs://$GS_URL/ovs4opnfv-$gitver
+    gsutil cp $TMP_RELEASE_DIR/$i gs://$GS_URL/ovs4opnfv-$gitver-$i
     echo
 done