fix document build (ssh gerrit-review cmd) 29/3529/1
authorRyota MIBU <r-mibu@cq.jp.nec.com>
Mon, 23 Nov 2015 14:57:33 +0000 (23:57 +0900)
committerRyota MIBU <r-mibu@cq.jp.nec.com>
Mon, 23 Nov 2015 14:57:33 +0000 (23:57 +0900)
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Change-Id: I3d3c4cdd1031514526382c83178a3a2f3e1b471d

jjb/releng-defaults.yaml
jjb/releng-macros.yaml

index c853474..0292f5f 100644 (file)
@@ -9,4 +9,3 @@
     build-artifact-num-to-keep: 5
 
     ssh-credentials: 'd42411ac011ad6f3dd2e1fa34eaa5d87f910eb2e'
-    gerrit-review: 'ssh -p 29418 gerrit.opnfv.org gerrit review'
index c5bbef7..22d5622 100644 (file)
             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:
             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"
             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: