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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can i add tagged versions into the message of slack notify

Hi team,


I am trying to use the slack notify pipeline to send custom messages on my pipeline build and i want to add the tagged versions of my pipeling in the messages can you please help me with how i can do that i am using slack notify version 0.3.3

1 answer

1 accepted

2 votes
Answer accepted

Hi @Sri Karan ,
Could you please provide more details on what do you mean by "tagged versions of my pipeling"? Do you mean BITBUCKET_BUILD_NUMBER?

Hi @Viktoriia Kozopas we are using semtag to tag our build versions and want to send custom messages to slack with the version details.

I guess I understand what you need. 

To share the data between steps you may use artifacts that you configure in the pipeline. You may create the file to save data (in your case - version number) and then share it with the following step (for example - in the message variable of the slack-notify pipe).

In bitbucket-pipelines.yml it may look something like this:



    - step:

        # ... previous steps ...


          - semtag getcurrent > ./version.txt # write version to file


          - version.txt

   - step:


          - pipe: atlassian/slack-notify:0.3.3



              MESSAGE: $(cat ./version.txt)

Hope this helps. Please, let us know if you have any questions. 

Like Sri Karan likes this

@Viktoriia Kozopas  Thanks for your response will give it a try and let you know if i need further help on this.

Like # people like this

@Viktoriia Kozopas Can we add failure notification to slack as well using the slack notify pipeline?

@Sri Karan  you can use $BITBUCKET_EXIT_CODE variable .

And add Slack notify pipe  to the after-script section in the step similar to this question.

Like Sri Karan likes this

@Oleksandr Kyrdan  Thanks for the update i will test the same and get back to you.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

705 views 17 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you