summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-05-30 15:56:23 +0000
committerGerrit Code Review <review@openstack.org>2022-05-30 15:56:23 +0000
commit64b80001ee72460a8ca589e350cf298b78c17aea (patch)
tree5fdd85a0c47c38d1ef395421660cf805db9dbbb9 /doc
parentc44a86edde7048c6fd9aeafa1823391e89dc2968 (diff)
parentc41fcbe483529deffb345808fdb489ff81de7d3c (diff)
downloadzuul-64b80001ee72460a8ca589e350cf298b78c17aea.tar.gz
Merge "Add support for GHE repository cache"
Diffstat (limited to 'doc')
-rw-r--r--doc/source/drivers/github.rst31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/source/drivers/github.rst b/doc/source/drivers/github.rst
index 42a56bf2a..9ca7a1f38 100644
--- a/doc/source/drivers/github.rst
+++ b/doc/source/drivers/github.rst
@@ -182,6 +182,37 @@ The supported options in ``zuul.conf`` connections are:
Enable or disable GitHub rate limit logging. If rate limiting is disabled
in GitHub Enterprise this can save some network round trip times.
+ .. attr:: repo_cache
+
+ To configure Zuul to use a GitHub Enterprise `repository cache
+ <https://docs.github.com/en/enterprise-server@3.3/admin/enterprise-management/caching-repositories/about-repository-caching>`_
+ set this value to the hostname of the cache (e.g.,
+ ``europe-ci.github.example.com``). Zuul will fetch commits as
+ well as determine the global repo state of repositories used in
+ jobs from this host.
+
+ This setting is incompatible with :attr:`<github
+ connection>.sshkey`.
+
+ Because the repository cache may be several minutes behind the
+ canonical site, enabling this setting automatically sets the
+ default :attr:`<github connection>.repo_retry_timeout` to 600
+ seconds. That setting may still be overidden to specify a
+ different value.
+
+ .. attr:: repo_retry_timeout
+
+ This setting is only used if :attr:`<github
+ connection>.repo_cache` is set. It specifies the amount of time
+ in seconds that Zuul mergers and executors should spend
+ attempting to fetch git commits which are not available from the
+ GitHub repository cache host.
+
+ When :attr:`<github connection>.repo_cache` is set, this value
+ defaults to 600 seconds, but it can be overridden. Zuul retries
+ git fetches every 30 seconds, and this value will be rounded up
+ to the next highest multiple of 30 seconds.
+
Trigger Configuration
---------------------
GitHub webhook events can be configured as triggers.