Update Gerrit trigger to use releng macro 92/73492/1
authorDaniel Farrell <dfarrell@redhat.com>
Wed, 27 Jun 2018 17:27:38 +0000 (13:27 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Wed, 27 Jun 2018 17:27:38 +0000 (13:27 -0400)
There seems to be a new way to add triggers for Gerrit patch
submissions. We were defining a trigger manually ourselves in the
verify-rpm job, but now there's a shared trigger in releng-macros we can
use.

I noticed this because the packaging-verify-rpm-master job hasn't run in
quite a while, although it should have run on some incoming patches that
touched the packages/ dir. Hoping using this macro fixes the job.

Change-Id: Ib0cd9853ac621a7fe474cfaa058d0ec1bed117f8
Jira: INTPAK-179
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
jjb/packaging/packaging.yaml

index aa2b85a0912436a278d70f07b2ef8b42eb6d97e4..54dbe0f8958a50bd6eb5d1b77c9eb4b7e4aec018 100644 (file)
       - install-test-uninstall-rpm
 
     triggers:
-      - gerrit:
-          server-name: '{gerrit-server-name}'
-          trigger-on:
-            - comment-added-contains-event:
-                comment-contains-value: 'rpm-verify'
-          projects:
-            - project-compare-type: ANT
-              project-pattern: '{project}'
-              branches:
-                - branch-compare-type: ANT
-                  branch-pattern: '**/{branch}'
-              file-paths:
-                - compare-type: ANT
-                  pattern: 'packages/**'
+      - gerrit-trigger-patch-submitted:
+          gerrit-server-name: '{gerrit-server-name}'
+          project: '{project}'
+          branch: '{branch}'
+          files: 'packages/**'
 
     publishers:
       - lf-infra-publish