From: Ryota MIBU Date: Mon, 23 Nov 2015 14:57:33 +0000 (+0900) Subject: fix document build (ssh gerrit-review cmd) X-Git-Tag: test-tag~178 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=6c1b77bea51e28810e53a1f2eea5da9135ca7842;p=releng.git fix document build (ssh gerrit-review cmd) Signed-off-by: Ryota MIBU Change-Id: I3d3c4cdd1031514526382c83178a3a2f3e1b471d --- diff --git a/jjb/releng-defaults.yaml b/jjb/releng-defaults.yaml index c85347457..0292f5f31 100644 --- a/jjb/releng-defaults.yaml +++ b/jjb/releng-defaults.yaml @@ -9,4 +9,3 @@ build-artifact-num-to-keep: 5 ssh-credentials: 'd42411ac011ad6f3dd2e1fa34eaa5d87f910eb2e' - gerrit-review: 'ssh -p 29418 gerrit.opnfv.org gerrit review' diff --git a/jjb/releng-macros.yaml b/jjb/releng-macros.yaml index c5bbef7d3..22d56224c 100644 --- a/jjb/releng-macros.yaml +++ b/jjb/releng-macros.yaml @@ -221,7 +221,7 @@ echo echo "$gerrit_comment" echo - {gerrit-review} -p {project} -m "$gerrit_comment" $GERRIT_PATCHSET_REVISION + ssh -p 29418 gerrit.opnfv.org gerrit review -p $GERRIT_PROJECT -m "$gerrit_comment" $GERRIT_PATCHSET_REVISION #TODO(r-mibu): change this to publisher - builder: @@ -240,10 +240,10 @@ echo "#####################" echo - if [[ "{branch}" == "master" ]] ; then - gs_path="artifacts.opnfv.org/{project}/docs" + if [[ "$GERRIT_BRANCH" == "master" ]] ; then + gs_path="artifacts.opnfv.org/$GERRIT_PROJECT/docs" else - gs_path="artifacts.opnfv.org/{project}/{branch}/docs" + gs_path="artifacts.opnfv.org/$GERRIT_PROJECT/$GERRIT_BRANCH/docs" fi gsutil -m cp -r docs/output/* "gs://$gs_path" @@ -262,7 +262,7 @@ echo echo "$gerrit_comment" echo - {gerrit-review} -p {project} -m "$gerrit_comment" $GERRIT_PATCHSET_REVISION + ssh -p 29418 gerrit.opnfv.org gerrit review -p $GERRIT_PROJECT -m "$gerrit_comment" $GERRIT_PATCHSET_REVISION #TODO(r-mibu): change this to publisher - builder: