From 926a4d1f6cbbd4e9efe49d32e0c73ba79dcb2b77 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Tue, 18 Mar 2014 02:32:08 +0000 Subject: [PATCH] Update patchset-created hook for Gerrit welcome * .../templates/gerrit_patchset-created.erb: The SSH user and key for the welcome-message hook script are now options instead of positional parameters. Also, the user is a short name not a full E-mail address. Change-Id: Ibcb70068db89ec75a4b284340206718fd9d10e96 --- .../openstack_project/templates/gerrit_patchset-created.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openstack_project/templates/gerrit_patchset-created.erb b/modules/openstack_project/templates/gerrit_patchset-created.erb index 6906d10dbc..18079de718 100755 --- a/modules/openstack_project/templates/gerrit_patchset-created.erb +++ b/modules/openstack_project/templates/gerrit_patchset-created.erb @@ -13,6 +13,6 @@ timeout -k 2m 10m /usr/local/bin/trivial-rebase \ <% end -%> <% if $ssh_welcome_rsa_key_contents != "" -%> timeout -k 2m 10m /usr/local/bin/welcome-message patchset-created \ - --verbose welcome-message@review.openstack.org \ - /home/gerrit2/review_site/etc/ssh_welcome_rsa_key "$@" + --verbose --ssh-user=welcome-message \ + --ssh-key=/home/gerrit2/review_site/etc/ssh_welcome_rsa_key "$@" <% end -%>