system-config/modules/openstack_project/templates/gerrit_patchset-created.erb
Jeremy Stanley f20639a2be Install and use the Gerrit welcome-message keypair
Change-Id: I7c23112664e43713f8dfc4bd0e4b9aec46b71500
2014-01-31 22:04:15 +00:00

17 lines
788 B
Plaintext
Executable File

#!/bin/sh
# Use timeout to kill any process running longer than 10 minutes.
timeout -k 2m 10m /usr/local/bin/update-blueprint patchset-created "$@"
timeout -k 2m 10m /usr/local/bin/update-bug patchset-created "$@"
timeout -k 2m 10m /usr/local/bin/notify-impact patchset-created "$@" --impact SecurityImpact --dest-address 'openstack-security@lists.openstack.org'
timeout -k 2m 10m /usr/local/bin/trivial-rebase \
patchset-created \
--whitespace \
--private-key-path=<%= ssh_host_key %> \
--role-user=<%= trivial_rebase_role_id %> "$@"
<% if $ssh_welcome_rsa_key_contents != "" -%>
timeout -k 2m 10m /usr/local/bin/welcome-message patchset-created --dryrun \
welcome-message@review.openstack.org \
/home/gerrit2/review_site/etc/ssh_welcome_rsa_key "$@"
<% end -%>