Delete files in dest that don't exist

When using static nodes, we don't properly delete stale files nolonger
tracked in git.

Change-Id: Icb3b140abd1e2e3f1ca127f91f78c0df7efc4298
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2019-03-30 00:17:09 -04:00
parent 344d7ef6e5
commit 5e31d28504

View File

@ -1,9 +1,10 @@
# TODO(pabelanger): Handle cleanup on static nodes
- name: Start zuul_console daemon. - name: Start zuul_console daemon.
zuul_console: zuul_console:
- name: Synchronize src repos to workspace directory. - name: Synchronize src repos to workspace directory.
synchronize: synchronize:
delete: true
dest: "{{ zuul_workspace_root }}" dest: "{{ zuul_workspace_root }}"
recursive: true
src: "{{ zuul.executor.src_root }}" src: "{{ zuul.executor.src_root }}"
no_log: true no_log: true