summaryrefslogtreecommitdiffstats
path: root/jjb/netready/netready-upload-gluon-packages.sh
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2016-12-15 20:43:34 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-15 20:43:34 +0000
commitd8ec3fcab553c186736224caa1a1f187dff7bdc5 (patch)
tree7326d6e2bebbc691faaaa54f75ce9b84419b0428 /jjb/netready/netready-upload-gluon-packages.sh
parent508f72a1bec40410e1c008f13fbdfaf2cf56611d (diff)
parent1541e31316dfbd05733dd73d4d98ef3d412f86f9 (diff)
Merge "Basic CI integration for building Gluon packages"
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