summaryrefslogtreecommitdiffstats
path: root/jjb/releng-macros.yaml
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2015-12-01 17:34:09 +0900
committerRyota MIBU <r-mibu@cq.jp.nec.com>2015-12-01 17:34:09 +0900
commit465b106f0dcbb0c5c19d561373034ab47eee4f57 (patch)
tree2fda0eb63ddbbc2ef77eebb468478175371deb85 /jjb/releng-macros.yaml
parent055361f3139dc0d028a5df06114941ea9c32c805 (diff)
jjb: fix output path in docs uploader
Change-Id: I52735adbce48734f103ac76c2b4f5c5c77427c58 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'jjb/releng-macros.yaml')
-rw-r--r--jjb/releng-macros.yaml14
1 files changed, 8 insertions, 6 deletions
diff --git a/jjb/releng-macros.yaml b/jjb/releng-macros.yaml
index c009abd97..f9cb95209 100644
--- a/jjb/releng-macros.yaml
+++ b/jjb/releng-macros.yaml
@@ -165,7 +165,7 @@
export PATH=$PATH:/usr/local/bin/
[[ $GERRIT_CHANGE_NUMBER =~ .+ ]]
- [[ -d docs/output ]]
+ [[ -d output ]]
echo
echo "###########################"
@@ -175,9 +175,10 @@
gs_base="artifacts.opnfv.org/review"
gs_path="$gs_base/$GERRIT_CHANGE_NUMBER"
- local_path="docs/$GERRIT_CHANGE_NUMBER"
+ local_path="upload/$GERRIT_CHANGE_NUMBER"
- mv docs/output "$local_path"
+ mkdir -p upload
+ mv output "$local_path"
gsutil -m cp -r "$local_path" "gs://$gs_base"
if gsutil ls "gs://$gs_path" | grep -e 'html$' > /dev/null 2>&1 ; then
@@ -199,7 +200,7 @@
set -o pipefail
export PATH=$PATH:/usr/local/bin/
- [[ -d docs/output ]]
+ [[ -d output ]]
echo
echo "#####################"
@@ -213,9 +214,10 @@
gs_base="artifacts.opnfv.org/$GERRIT_PROJECT/$GERRIT_BRANCH"
fi
gs_path="$gs_base/docs"
- local_path="docs/docs"
+ local_path="upload/docs"
- mv docs/output "$local_path"
+ mkdir -p upload
+ mv output "$local_path"
gsutil -m cp -r "$local_path" "gs://$gs_base"
if gsutil ls "gs://$gs_path" | grep -e 'html$' > /dev/null 2>&1 ; then