I have a very simple pipeline for the tags. When I do the tag, I want to send simple slack webhook. My issue is that environment variable $BITBUCKET_TAG
is not rendered neither in echo
nor in slack message.
pipelines:
tags:
'*':
- step:
script:
- echo $BITBUCKET_TAG
- curl -X POST "https://hooks.slack.com/services/mysecuritykey" -H "Content-Type:application/json" -H "cache-control:no-cache" -d '{"username":"CoreLib tag","text":"Tag *$BITBUCKET_TAG* has been created"}'
and I get this in Slack
CoreLib tag [12:50 PM]
Tag $BITBUCKET_TAG has been created
What I want to achieve is to render the $BITBUCKET_TAG
value in my echo
and in Slack message properly, smth like:
CoreLib tag [12:50 PM]
Tag v2019.1.1 has been created