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
Digest: sha256:b198a727fadf804c850a76adb13e5bb7cc58c56c526dc6425d254cbc860d7ea0
Status: Downloaded newer image for bitbucketpipelines/slack-notify:2.3.0
INFO: Starting with payload provided in PAYLOAD_FILE...
INFO: Sending notification to Slack
✖ Notification failed. Pipe has finished with an error: Invalid URL '': No scheme supplied. Perhaps you meant https://?
Could you please advise how to make this work? Normal messages are sent
Hi @Aliaksandr Prytychanka . The error you provided points you with Invalid URL '' (empty string).
Check/update the repository variable $WEBHOOK_URL you used in the pipe.
Regards, Igor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.