fix document build (ssh gerrit-review cmd)
[releng.git] / jjb / releng-macros.yaml
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: