Hello guys. I want to set up the branch_pattern
for my slack/notify
jobs in the config.yml
file, but there are some issues.
The description for the branch_pattern
says:
A comma separated list of regex matchable branch names. Notifications will only be sent if sent from a job from these branches. By default ".+" will be used to match all branches. Pattern must match the full string, no partial matches.
But if I put there “a comma separated list”:
- slack/notify:
branch_pattern:
- /feature\/.*/,
- /hotfix\/.*/,
- /fix\/.*/,
- /h\/.*/,
- /f\/.*/
event: fail
template: CYPRESS_FAIL_1
channel: channel
I get a build error: Type error for argument branch_pattern: expected type: string, actual value: \"clojure.lang.LazySeq@29951265\" (type sequence)
error.
When I use string:
- slack/notify:
branch_pattern: /feature\/.*/, /hotfix\/.*/, /fix\/.*/, /h\/.*/, /f\/.*/
event: fail
template: CYPRESS_FAIL_1
channel: channel
Then the pattern does not match and the notification is not sent:
Current reference "f/axi-1528" does not match any matching parameter
Current matching pattern: /feature\/.*/, /hotfix\/.*/, /fix\/.*/, /h\/.*/, /f\/.*/
Could you please advise how to use multiple regex patterns in the branch_pattern
parameter?