Skip to content

Commit

Permalink
fix: jenkins trigger comment pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
c-nixon committed Jun 13, 2023
1 parent 54c0bf6 commit 7b9df78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
library 'magic-butler-catalogue'
def TRIGGER_PATTERN = '.*@logdnabot.*'

pipeline {
agent none
Expand All @@ -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' : ''
)
Expand All @@ -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}")
}
}

Expand Down

0 comments on commit 7b9df78

Please sign in to comment.