7cee7156bc
Currently the incremental push of the git repos to the nodes is split into a part in project-config and a part in zuul-jobs and only works within the OpenStack context. The prepare-workspace-git role is an attempt to make this generically available in zuul-jobs. It first checks for each needed project if it's cached. If yes it's cloned to the destination, if not it's just initialized as an empty git repo. After that we can generically use git operations to sync the correct state of the repos to the destination. Change-Id: I87938a02d51e561b25ca2cb20f53d62f3cd3ae73
18 lines
559 B
ReStructuredText
18 lines
559 B
ReStructuredText
Mirror the local git repos to remote nodes
|
|
|
|
This role uses git operations (unlike :zuul:role:`prepare-workspace`
|
|
which uses rsync) to mirror the locally prepared git repos to the remote
|
|
nodes while taking advantage of cached repos on the node if they exist.
|
|
This role works generically regardless of the existence of a cached
|
|
repo on the node.
|
|
|
|
The cached repos need to be placed using the canonical name under the
|
|
`cached_repos_root` directory.
|
|
|
|
**Role Variables**
|
|
|
|
.. zuul:rolevar:: cached_repos_root
|
|
:default: /opt/git
|
|
|
|
The root of the cached repos.
|