Support 'files' matcher logic
Change-Id: Ie04c0d9fee07b799544ef7334ed49cbbc10ff86a
diff --git a/zuul/cmd/migrate.py b/zuul/cmd/migrate.py
index 7d4c409..fd53987 100644
--- a/zuul/cmd/migrate.py
+++ b/zuul/cmd/migrate.py
@@ -300,6 +300,7 @@
self.nodes = nodes or []
self.parent = parent
self.branch = None
+ self.files = None
if self.content and not self.name:
self.name = get_single_key(content)
@@ -376,6 +377,9 @@
if self.branch:
output[self.name]['branch'] = self.branch
+ if self.files:
+ output[self.name]['files'] = self.files
+
if not output[self.name]:
return self.name
@@ -481,6 +485,8 @@
new_job.voting = False
if layout_job.get('branch'):
new_job.branch = layout_job['branch']
+ if layout_job.get('files'):
+ new_job.files = layout_job['files']
return new_job