Adjust kni gerrit trigger to pick up merges 68/668/1
authorEric Ball <eball@linuxfoundation.org>
Thu, 9 May 2019 20:18:59 +0000 (13:18 -0700)
committerEric Ball <eball@linuxfoundation.org>
Thu, 9 May 2019 20:18:59 +0000 (13:18 -0700)
The original trigger appears to have been pulled from a verify job
rather than a merge job. This should fix build-on-merge function.

Change-Id: I77ba8479801a82a5d1d3e670ba8822cb773cfdb9
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
jjb/akraino-templates/akraino-jjb-kni.yaml

index be1f9c1..d3febe2 100644 (file)
       - comment-added-contains-event:
           comment-contains-value: remerge$
 
+    gerrit_trigger_file_paths:
+      - compare-type: ANT
+        pattern: '**'
+
     scm:
       - lf-infra-gerrit-scm:
           jenkins-ssh-credential: '{jenkins-ssh-credential}'
     triggers:
       - gerrit:
           server-name: '{gerrit-server-name}'
-          trigger-on:
-            - patchset-created-event:
-                exclude-drafts: 'false'
-                exclude-trivial-rebase: 'false'
-                exclude-no-code-change: 'false'
-            - change-merged-event
-            - comment-added-contains-event:
-                comment-contains-value: 'recheck'
-            - comment-added-contains-event:
-                comment-contains-value: 'reverify'
+          trigger-on: '{obj:gerrit_merge_triggers}'
+          projects:
+            - project-compare-type: ANT
+              project-pattern: '{project}'
+              branches:
+                - branch-compare-type: ANT
+                  branch-pattern: '**/{branch}'
+              file-paths: '{obj:gerrit_trigger_file_paths}'
 
     builders:
       - lf-infra-pre-build