system-config/modules/openstack_project/templates/gerrit_patchset-created.erb
Tom Fifield 8c32906076 Add welcome_message.py to patchset-created trigger
This patch adds the welcome message script to the patchset-created
trigger in gerrit. In theory it should post a lovely message to
any committer making a patchset for the first time.

However, it has not been tested, and review-dev is not available.
So, this patch uses the --dry-run option of welcome_message.py
so that it will hopefully post useful information to the log, but
won't cause catastrophic failures.

Change-Id: I4f04fcd2bd43f680f0d5032fc613194be8dd2586
2013-12-20 13:38:17 +08:00

15 lines
725 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 %> "$@"
timeout -k 2m 10m /usr/local/bin/welcome-message patchset-created --dryrun \
--private-key-path=<%= ssh_host_key %> \
--role-user=<%= trivial_rebase_role_id %> "$@"