pipelines: default:
- step: name: Notify Slack
script: - apt-get update && apt-get install gettext-base
- envsubst < "payload.json.template" > "payload.json"
- pipe: atlassian/slack-notify:2.3.0
variables:
WEBHOOK_URL: $WEBHOOK_URL
PAYLOAD_FILE: payload.json
CHANEEL: '#dev'
With these variables set and the exact correct payload.json.template of the correct format, the pipe crashes with an error
<span><span>Digest: sha256:b198a727fadf804c850a76adb13e5bb7cc58c56c526dc6425d254cbc860d7ea0</span></span>
<span><span>Status: Downloaded newer image for bitbucketpipelines/slack-notify:2.3.0</span></span><span><span>INFO: Starting with payload provided in PAYLOAD_FILE...</span></span><span><span>INFO: Sending notification to Slack</span></span><span><span>✖ Notification failed. Pipe has finished with an error: Invalid URL '': No scheme supplied. Perhaps you meant https://?<br><br></span></span>Could you please advise how to make this work? Normal messages are sent