Missed Team ’24? Catch up on announcements here.

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

Specifying versions of project in continuous deployment

Viktor July 11, 2018

How I can specify version of project in continuous deployment using Bitbucket pipelines? So if I commit to master, pipelines deploy to prod all changes, and I want to change the version of project.

2 answers

1 accepted

1 vote
Answer accepted
StannousBaratheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2018

Hi @Viktor

This largely depends on how you package and release your application. It's common for build tools such as maven to bump the artifact version as part of their release process.

There are also a set of default environment variables you can use to generate a version number. Some users choose to tag their releases with the pipeline number which is available as the BITBUCKET_BUILD_NUMBER environment variable. Others use the commit hash and/or a timestamp. Please see the following reference for a full list of default environment variables available to the pipeline: https://confluence.atlassian.com/bitbucket/environment-variables-794502608.html

Regards

Sam

0 votes
Viktor July 23, 2018

Thanks)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events