Change project-compare-type in Gerrit Trigger to REG_EXP 56/356/2
authorFatih Degirmenci <fdegir@gmail.com>
Fri, 8 Feb 2019 11:07:36 +0000 (12:07 +0100)
committerFatih Degirmenci <fdegir@gmail.com>
Fri, 8 Feb 2019 12:08:18 +0000 (13:08 +0100)
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>
jjb/global/jjb-macros.yaml

index f19761d780f364003fd3f44ea05462ed12b99b19..dd5f73da689cf737513d576428e5a3cf600e23c2 100644 (file)
             - 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'