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