system-config/playbooks/roles/gerrit/files/hooks/change-merged
Monty Taylor 27dfd250af Set env vars pointing to correct file locations
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
2020-04-10 13:29:50 -05:00

10 lines
387 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-bug change-merged "$@"