We added the slack pipe integration and it was doing fine for a week or so. But then a build failed during the slack step.
The Slack pipe produces a malformed json to send over the Stack API. It fails to escape any double quotes character provided in the message.
The pipe should handle any input, and be able to produce a valid json payload.
script:
- MESSAGE="it doesn't escape the \" character" - pipe: atlassian/slack-notify:0.2.1 variables: WEBHOOK_URL: $WEBHOOK_URL MESSAGE: "$MESSAGE"
@awerlang this has now been fixed in version 0.2.3 of the pipe. Thanks for the bug report!
this breaks newlines, using `\n` results in a `\\n`
edit: mm, got it working surrounding the message with " instead of '
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.