Add more job selection debug lines
Even if a global variant matches, a project pipeline variant must
still match. This is important information to know when debugging.
Change-Id: Iaaff183c62457f9d264111002371f5f44ced867b
diff --git a/zuul/model.py b/zuul/model.py
index 3a948e4..e53a357 100644
--- a/zuul/model.py
+++ b/zuul/model.py
@@ -2586,6 +2586,8 @@
try:
variants = self.collectJobs(jobname, change)
except NoMatchingParentError:
+ self.log.debug("No matching parents for job %s and change %s",
+ jobname, change)
variants = None
if not variants:
# A change must match at least one defined job variant
@@ -2607,6 +2609,11 @@
if variant.changeMatches(change):
frozen_job.applyVariant(variant)
matched = True
+ self.log.debug("Pipeline variant %s matched %s",
+ repr(variant), change)
+ else:
+ self.log.debug("Pipeline variant %s did not match %s",
+ repr(variant), change)
if not matched:
# A change must match at least one project pipeline
# job variant.