From 7b9df78d63a1e0cd233dad09d0413a798ea8eee3 Mon Sep 17 00:00:00 2001 From: Chris Nixon Date: Tue, 13 Jun 2023 13:20:55 +0100 Subject: [PATCH] fix: jenkins trigger comment pattern --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7d7a2e8..239ff70 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,5 @@ library 'magic-butler-catalogue' +def TRIGGER_PATTERN = '.*@logdnabot.*' pipeline { agent none @@ -8,7 +9,7 @@ pipeline { ansiColor 'xterm' } triggers { - issueCommentTrigger('.*test this please.*') + issueCommentTrigger(TRIGGER_PATTERN) parameterizedCron( env.BRANCH_NAME ==~ 'main' ? 'H 8 * * 7 % PUBLISH_GCR_IMAGE=true;PUBLISH_ICR_IMAGE=true' : '' ) @@ -31,7 +32,7 @@ pipeline { } } steps { - error("A maintainer needs to approve this PR with a comment of '${TRIGGER_STRING}'") + error("A maintainer needs to approve this PR for with comment containing ${TRIGGER_PATTERN}") } }