zuul-jobs/roles/test-prepare-workspace-git
Benedikt Loeffler 258add7bb4 Use zuul_workspace_root for prepare/mirror workspace test roles
Use zuul_workspace_root as the destination folder for preparing and
mirroring the workspace, which points to ansible_user_dir by default.
(As is currently the case).
The override of this variable can be useful when using a static node
with multiple slots to use a separate workspace for each slot.

Change-Id: I2014b9c876907cfc17a0ec7fa2b6d4e67cb2331c
2023-06-27 14:21:38 +02:00
..
defaults Use zuul_workspace_root for prepare/mirror workspace test roles 2023-06-27 14:21:38 +02:00
tasks Use zuul_workspace_root for prepare/mirror workspace test roles 2023-06-27 14:21:38 +02:00
README.rst Use zuul_workspace_root for prepare/mirror workspace test roles 2023-06-27 14:21:38 +02:00

Mirror the local git repos to remote nodes

This role uses git operations (unlike :zuulprepare-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