1160068ce4
If a gerrit hook blocks none of the other hooks queued behind it run. Give each hook subprocess 10 minutes to run otherwise timeout and kill that process. Change-Id: Ic5e1243e08088dbf0c5bff49e7fc05bcb867819b Reviewed-on: https://review.openstack.org/11475 Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
5 lines
161 B
Bash
Executable File
5 lines
161 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Use timeout to kill any process running longer than 10 minutes.
|
|
timeout -k 2m 10m python /usr/local/gerrit/scripts/update_bug.py change-merged "$@"
|