Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

PAYLOAD_FILE without MESSAGE does not work for slack_notify pipe

Steve Annett July 7, 2023

Hi

In the last example of https://bitbucket.org/atlassian/slack-notify/src/master/ it shows how to use a payload file

script:
  - envsubst < "payload.json.template" > "payload.json"
  - pipe: atlassian/slack-notify:2.0.1
    variables:
      WEBHOOK_URL: $WEBHOOK_URL
      PAYLOAD_FILE: payload.json

But when I try it, with slack-notify:2.0.1, I get


✖ Validation errors:
MESSAGE:
- required field

 

1 answer

1 accepted

1 vote
Answer accepted
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 7, 2023

Hi @Steve Annett 

Thank you for your question!

We'll fix it in the future release.

 

Best regards,
Oleksandr Kyrdan

Steve Annett July 10, 2023

Thanks!

 

I can confirm having a blank message works as a workaround for now

script:
  - envsubst < "payload.json.template" > "payload.json"
  - pipe: atlassian/slack-notify:2.0.1
    variables:
      WEBHOOK_URL: $WEBHOOK_URL
MESSAGE: " "
PAYLOAD_FILE: payload.json

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events