diff options
author | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2015-12-01 17:34:09 +0900 |
---|---|---|
committer | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2015-12-01 17:34:09 +0900 |
commit | 465b106f0dcbb0c5c19d561373034ab47eee4f57 (patch) | |
tree | 2fda0eb63ddbbc2ef77eebb468478175371deb85 /jjb/releng-macros.yaml | |
parent | 055361f3139dc0d028a5df06114941ea9c32c805 (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.yaml | 14 |
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 |