blob: 39ecf3bb06d491ef93e54e227b91f2011f434c72 (
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
|
#!/bin/bash
set -e
set -o pipefail
build_dir="build"
project="$(git remote -v | head -n1 | awk '{{print $2}}' | sed -e 's,.*:\(.*/\)\?,,' -e 's/\.git$//')"
export PATH=$PATH:/usr/local/bin/
make
# upload all built files
files=(
design_docs
requirements/html
requirements/latex/*.pdf
)
for file in "${{files[@]}}"; do
gsutil cp -r -L gsoutput.txt $build_dir/$file gs://artifacts.opnfv.org/$project/
#gsutil setmeta -h "Cache-Control:private, max-age=0, no-transform" \
#-R gs://artifacts.opnfv.org/$project/$file
cat gsoutput.txt
rm -f gsoutput.txt
done
|