Use git review for pushing gerrit
patches from jenkins. This was
changed due to absence of
git review on some nodes. It is
changed back with a note warning
that not all jenkins nodes have
git review installed.
Change-Id: I43e37b909d26b4940a24132713b5145aa60ea628
Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
# Don't fail the build if this command fails because it's possible that there
# is no changes since last update.
-git push ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/builder HEAD:refs/for/master%topic={gerrit-topic} || true
+git review --yes -t {gerrit-topic} || true
# This script requires the following JJB variables to be passed in:
# {project} Gerrit project-name
# {gerrit-topic} Gerrit topic, please make a unique topic.
- # {gerrit-commit-message} Commit message to assign to commit.
+ # {gerrit-commit-message} Commit message to assign to commit.
+ # NOTE: Requires git review to be installed on node.
builders:
- shell: !include-raw: opendaylight-infra-push-gerrit-patch.sh