From: Thanh Ha Date: Thu, 20 Apr 2017 04:04:43 +0000 (-0400) Subject: Fix Gerrit Trigger comment regex X-Git-Tag: v0.1.0~1 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=0d552129fe0fd39a8aa6346dc139af3d82e98513;p=releng%2Fglobal-jjb.git Fix Gerrit Trigger comment regex 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 --- diff --git a/jjb/lf-ci-jobs.yaml b/jjb/lf-ci-jobs.yaml index 6a3b6b12..722b5bcb 100644 --- a/jjb/lf-ci-jobs.yaml +++ b/jjb/lf-ci-jobs.yaml @@ -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}' @@ -162,7 +162,7 @@ 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}'