Hello,
I have a slack webhook that receives as a parameter an attribute,
example: { "text": "Build success"}
how can I send this variable using bitbucket pipeline?
They do not mention that point in the official documentation
https://bitbucket.org/atlassian/slack-notify/src/master/
Error:
Pipeline file:
@jamerquiroga we are sending 'text' field on our own, so I guess you should specify as MESSAGE variable 'build success'.
This is actually strange, your pipeline looks valid. I tried this and succeeded in the case if $build_status var in pipeline has string type. Like $build_status=success or $build_status = 0.
But pipeline says the MESSAGE (text) is empty. Check if you have passed MESSAGE in the last execution indeed, because failure message does not correspond to what you have in pipeline shared.
Try also to go with MESSAGE: '"your message $build_status"' (find this in readme as advanced example https://bitbucket.org/atlassian/slack-notify/src/master/).
^^ This will help us to understand the root cause, because for now, I don't see why pipeline would fail.
Regards, Galyna
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.