Change project-compare-type in Gerrit Trigger to REG_EXP
There will be situations where patches for multiple projects
are needed to be verified by common jobs. This change makes
it possible to achieve this by using REG_EXP inproject-compare-type.
One can specify the projects with a trigger like below
triggers:
- nordix-gerrit-trigger-patchset-created:
project: 'projectA|projectB\/subprojectB'
Change-Id: Iec99a3dddc9505b862a5eeb197064d8f5cbd5be7
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
diff --git a/jjb/global/jjb-macros.yaml b/jjb/global/jjb-macros.yaml
index f19761d..dd5f73d 100644
--- a/jjb/global/jjb-macros.yaml
+++ b/jjb/global/jjb-macros.yaml
@@ -124,7 +124,7 @@
- comment-added-contains-event:
comment-contains-value: 'reverify'
projects:
- - project-compare-type: 'ANT'
+ - project-compare-type: 'REG_EXP'
project-pattern: '{project}'
branches:
- branch-compare-type: 'ANT'