1ccf5e68e5
This should only land once we are on Gerrit 3.x and happy with it. But at this point the mysql reviewdb will not be used anymore and config for it can be removed. We keep general mysql things like tools and backups in place as the accountPatchReviewDb continues to live in MySQL. This also comments out calls to jeepyb's welcome-message, update-blueprint and update-bug entrypoints from the patchset-created event hook, since they rely on database connections for the moment. Calls to update-bug in change-abandoned and change-merged event hooks are retained as those code paths don't rely on database interaction nor attempt to load the removed configuration. Change-Id: I6e24dbb223fd3f76954db3dd74a03887cf2e2a8b
19 lines
914 B
Bash
Executable File
19 lines
914 B
Bash
Executable File
#!/bin/sh
|
|
|
|
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
|
|
|
|
# Use timeout to kill any process running longer than 10 minutes.
|
|
timeout -k 2m 10m /usr/local/bin/notify-impact patchset-created "$@" --impact SecurityImpact --dest-address 'openstack-security@lists.openstack.org'
|
|
# TODO: reenable these once jeepyb no longer relies on the old Gerrit DB
|
|
#timeout -k 2m 10m /usr/local/bin/update-blueprint patchset-created "$@"
|
|
#timeout -k 2m 10m /usr/local/bin/update-bug patchset-created "$@"
|
|
#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
|