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
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:
pipelines: default: - step: # ... previous steps ... script: - semtag getcurrent > ./version.txt # write version to file artifacts: - version.txt - step: script: - pipe: atlassian/slack-notify:0.3.3 variables: WEBHOOK_URL: $WEBHOOK_URL MESSAGE: $(cat ./version.txt)
Hope this helps. Please, let us know if you have any questions.
@Viktoriia Kozopas Thanks for your response will give it a try and let you know if i need further help on this.
It looks like you're new here. Sign in or register to get started.