summaryrefslogtreecommitdiffstats
path: root/jjb/netready/netready-upload-gluon-packages.sh
diff options
context:
space:
mode:
authorGeorg Kunz <georg.kunz@ericsson.com>2016-12-10 16:40:11 +0100
committerGeorg Kunz <georg.kunz@ericsson.com>2016-12-15 20:59:59 +0100
commit1541e31316dfbd05733dd73d4d98ef3d412f86f9 (patch)
treeb0d047d83a78d915d2c9937aceb74807bb5bacfb /jjb/netready/netready-upload-gluon-packages.sh
parent06547903ca974b6e1ec3625d596c1906d4a416a4 (diff)
Basic CI integration for building Gluon packages
This first iteration of CI integration aims at realizing a daily build job which creates installable RPM from upstream Gluon master. Change-Id: I5a722943850e27f4d0345a73b488cbd00244ac90 Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Diffstat (limited to 'jjb/netready/netready-upload-gluon-packages.sh')
-rwxr-xr-xjjb/netready/netready-upload-gluon-packages.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/jjb/netready/netready-upload-gluon-packages.sh b/jjb/netready/netready-upload-gluon-packages.sh
new file mode 100755
index 000000000..7c1e33727
--- /dev/null
+++ b/jjb/netready/netready-upload-gluon-packages.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+set -o errexit
+set -o nounset
+set -o pipefail
+
+echo "Uploading Gluon packages"
+echo "--------------------------------------------------------"
+echo
+
+source $WORKSPACE/opnfv.properties
+
+for artifact in $ARTIFACT_LIST; do
+ echo "Uploading artifact: ${artifact}"
+ gsutil cp $artifact gs://$GS_URL/$(basename $artifact) > gsutil.$(basename $artifact).log
+ echo "Upload complete for ${artifact}"
+done
+
+gsutil cp $WORKSPACE/opnfv.properties gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.properties > gsutil.properties.log
+gsutil cp $WORKSPACE/opnfv.properties gs://$GS_URL/latest.properties > gsutil.properties.log
+
+echo "--------------------------------------------------------"
+echo "Upload done!"
+
+echo "Artifacts are not available as:"
+for artifact in $ARTIFACT_LIST; do
+ echo "http://$GS_URL/$(basename $artifact)"
+done