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

How to make my bitbucket pipeline slack notify message into bold format

John Michael Flores September 6, 2022
I want to make the message bold so the person will notice the word
- step:
        name: Send Notification to Slack
        script:
          - pipe: atlassian/slack-notify:2.0.0
            variables:
              WEBHOOK_URL: 'CLASSIFIED'
              MESSAGE: '<@1234>, There's an **ERROR**'

1 answer

0 votes
Matija Varjacic September 8, 2022

I don't think you can.
But you can use PAYLOAD_FILE  variable to add json that contains slack block kit blocks. Then you can use markdown.

- pipe: atlassian/slack-notify:2.0.0
    variables:
      WEBHOOK_URL: $WEBHOOK_URL
      PAYLOAD_FILE: payload.json

Example;
image.png
https://api.slack.com/block-kit/building

Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 9, 2022

Also take a look at this response.

 

Regards, Igor.

Suggest an answer

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

Atlassian Community Events