blob: 23dac9377aa9f7171929c9ae4d8c4ccbc7687860 (
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" \
gs://artifacts.opnfv.org/$project/$file
cat gsoutput.txt
rm -f gsoutput.txt
done
|