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.
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.