18df17d5ff
The update_blueprint script has been updated to call the Gerrit REST API instead of relying on the old Gerrit DB. Depends-On: https://review.opendev.org/c/opendev/jeepyb/+/795912 Change-Id: Ie21ee33801429ef4398f70b22223ee1e9bea1301
18 lines
762 B
Bash
Executable File
18 lines
762 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 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
|