blob: c635a115e115ef8e86c6c7a38a464a8c08efe865 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/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=(
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
|