Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Automate result management in CI
[releng.git]
/
jjb
/
opnfvdocs
/
docu-build.sh
diff --git
a/jjb/opnfvdocs/docu-build.sh
b/jjb/opnfvdocs/docu-build.sh
index
ade400d
..
057cc97
100644
(file)
--- a/
jjb/opnfvdocs/docu-build.sh
+++ b/
jjb/opnfvdocs/docu-build.sh
@@
-8,11
+8,10
@@
export PATH=$PATH:/usr/local/bin/
git_sha1="$(git rev-parse HEAD)"
docu_build_date="$(date)"
git_sha1="$(git rev-parse HEAD)"
docu_build_date="$(date)"
-if [[ $
GERRIT_EVENT_TYPE != "change-merged
" ]] ; then
- patchset="/$GERRIT_CHANGE_NUMBER"
+if [[ $
JOB_NAME =~ "verify
" ]] ; then
+
patchset="/$GERRIT_CHANGE_NUMBER"
fi
fi
-
files=()
while read -r -d ''; do
files+=("$REPLY")
files=()
while read -r -d ''; do
files+=("$REPLY")
@@
-61,10
+60,10
@@
for img in "${{images[@]}}"; do
# uploading found images
echo "uploading $img"
cat "$img" | gsutil cp -L gsoutput.txt - \
# uploading found images
echo "uploading $img"
cat "$img" | gsutil cp -L gsoutput.txt - \
- gs://artifacts.opnfv.org/"$project"/"$img"
+ gs://artifacts.opnfv.org/"$project"
"$patchset"
/"$img"
gsutil setmeta -h "Content-Type:image/jpeg" \
-h "Cache-Control:private, max-age=0, no-transform" \
gsutil setmeta -h "Content-Type:image/jpeg" \
-h "Cache-Control:private, max-age=0, no-transform" \
- gs://artifacts.opnfv.org/"$project"/"$img"
+ gs://artifacts.opnfv.org/"$project"
"$patchset"
/"$img"
cat gsoutput.txt
rm -f gsoutput.txt
cat gsoutput.txt
rm -f gsoutput.txt
@@
-73,7
+72,7
@@
done
if [[ $GERRIT_EVENT_TYPE = "change-merged" ]] ; then
patchset="/$GERRIT_CHANGE_NUMBER"
if [ ! -z "$patchset" ]; then
if [[ $GERRIT_EVENT_TYPE = "change-merged" ]] ; then
patchset="/$GERRIT_CHANGE_NUMBER"
if [ ! -z "$patchset" ]; then
- gsutil rm gs://artifacts.opnfv.org/"$project""$patchset"/**
+ gsutil rm gs://artifacts.opnfv.org/"$project""$patchset"/**
|| true
fi
fi
fi
fi