2019-01-31 09:26:38 -08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-04-10 11:58:04 -05:00
|
|
|
export GERRIT_GIT_DIR=/var/gerrit/git
|
|
|
|
export GERRIT_CONFIG=/var/gerrit/etc/gerrit.config
|
|
|
|
export GERRIT_SECURE_CONFIG=/var/gerrit/etc/secure.config
|
|
|
|
export PROJECTS_YAML=/var/gerrit/etc/projects.yaml
|
|
|
|
export PROJECTS_INI=/var/gerrit/etc/projects.ini
|
|
|
|
|
2019-01-31 09:26:38 -08:00
|
|
|
# Use timeout to kill any process running longer than 10 minutes.
|
2021-03-23 15:22:49 +00:00
|
|
|
timeout -k 2m 10m /usr/local/bin/update-bug patchset-created "$@"
|
2021-06-11 01:32:49 +00:00
|
|
|
timeout -k 2m 10m /usr/local/bin/update-blueprint patchset-created "$@"
|
|
|
|
# TODO: reenable this once jeepyb no longer relies on the old Gerrit DB
|
2020-10-09 10:53:23 -07:00
|
|
|
#if [ -f /var/gerrit/etc/ssh_welcome_rsa_key ] ; then
|
|
|
|
#timeout -k 2m 10m /usr/local/bin/welcome-message patchset-created \
|
|
|
|
# --verbose --ssh-user=welcome-message \
|
|
|
|
# --ssh-key=/var/gerrit/etc/ssh_welcome_rsa_key "$@"
|
|
|
|
#fi
|