Fix Gerrit Trigger comment regex 38/4438/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 20 Apr 2017 04:04:43 +0000 (00:04 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 20 Apr 2017 04:04:45 +0000 (00:04 -0400)
Gerrit comments also contain Patch Set #: so the regex would need to be
slightly more complex if we want to be precise. Let's stick with a
comment ending in the keyword instead. It get's us most of the way
there.

Change-Id: Ib1209c5685f41ba0b287d6b32261e870fee1e27c
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/lf-ci-jobs.yaml

index 6a3b6b1..722b5bc 100644 (file)
@@ -91,7 +91,7 @@
           trigger-on:
             - change-merged-event
             - comment-added-contains-event:
-                comment-contains-value: ^remerge$
+                comment-contains-value: remerge$
           projects:
             - project-compare-type: ANT
               project-pattern: '{project}'
                 exclude-no-code-change: false
             - draft-published-event
             - comment-added-contains-event:
-                comment-contains-value: ^recheck$
+                comment-contains-value: recheck$
           projects:
             - project-compare-type: ANT
               project-pattern: '{project}'