I'm trying to integrate the Bitbucket Deployments feature into my project pipeline. Now my pipeline looks like this:
pipelines:
branches:
release/v*:
- step:
name: Build
script:
# ... do test and build things ...
- step:
name: Deploy
deployment: test
script:
- export BRANCH_TAIL=${BITBUCKET_BRANCH/*\//\/}
- export RELEASE_VERSION=${BRANCH_TAIL:2}
- export VERSION=${RELEASE_VERSION}.${BITBUCKET_BUILD_NUMBER}
# ... publishing package with version ${VERSION} ...
- git tag -m "v${VERSION} published" v${VERSION}
- git push origin v${VERSION}
In short:
- Build project;
- Deploy it using version with BITBUCKET_BUILD_NUMBER;
- Add git tag to commit (e.g. "v1.0.14").
Is there a way to display some message on successful deployment in the Deployments Dashboard (like "Package v1.0.14 was successfully published")? Now there are only build number (e.g. "#14") and commit message (without tag):
