I’m having trouble with the notify
option in my BK pipeline. I seem to be able to do this:
notify:
- slack: '#my_channel'
if: build.state == "passed"
…or this:
notify:
- slack:
channels:
- '#my_channel'
message: 'something bad happened'
…but not this (or any other variant like it; BK complains about not knowing what “if” is or not being able to find an expected key or various other errors):
notify:
- slack: '#my_channel'
if: build.state == "passed"
message: ':white_check_mark: success! :white_check_mark:'
Any suggestions?