summaryrefslogtreecommitdiffstats
path: root/jjb/netready/netready-upload-gluon-packages.sh
blob: 7c1e337274d4b90738c374122d83ef4f09e80874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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