27dfd250af
Files are bind-mounted into the container in different locations. Set envvars pointing to the right places. Also - we need to bind-mount the projects.yaml and projects.ini files into the container. While we're at it, move patchset-created to be a regular file. Change-Id: Iacd3e921464b24479db13bbf7ae998b8d8e2103d
18 lines
834 B
Bash
Executable File
18 lines
834 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/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'
|
|
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
|