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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.