We moved this file into /home/gerrit2 rather than keeping it in the project-config repo that is synced from gerrit to bridge to review. This wasn't a problem until recently when we started ensuring that rsync deletes non existant files on the source from the destination which removed the /opt/project-config/gerrit/projects.ini file. Then when attempting to start the gerrit container things complain about the missing file. Nothing is actually using that file though so we remove the bind mount from docker-compose.yaml to fix the container startup issues. We also clean up some gerrit hook references to the file. The update-bug script in jeepyb doesn't actually read the file at all so we can remove the reference to avoid confusion. Change-Id: I68bd5329409c2af3b53fed823fae7564c87e73c4
17 lines
713 B
Bash
Executable File
17 lines
713 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
|
|
|
|
# Use timeout to kill any process running longer than 10 minutes.
|
|
timeout -k 2m 10m /usr/local/bin/update-bug patchset-created "$@"
|
|
timeout -k 2m 10m /usr/local/bin/update-blueprint patchset-created "$@"
|
|
# TODO: reenable this once jeepyb no longer relies on the old Gerrit DB
|
|
#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
|