-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Deployments
-
None
-
1
Problem Definition
When a deployment project is cloned, its release version is the same as the original deployment project. Our customers are facing an issue when they want to set a release version lower than the original release version. In this case, they need to manually change the release version of each deployment until the number reaches the original version.
Suggested Solution
It should be a great idea that Bamboo has a feature to restart the release version.
Workaround
- Execute this query to get the deployment project id.
select deployment_project_id, * from deployment_project dp where dp.name = '[PROJECT_NAME]'
- With the result, now we are going to find the release version settings.
select next_version_name, * from deployment_version_naming dvn where deployment_project_id = '[DEPLOYMENT_PROJECT_ID]'
- Set the first release version with a number.
update deployment_version_naming set next_version_name = 'develop-1' where deployment_project_id = '[DEPLOYMENT_PROJECT_ID]'
- Create a new release on Bamboo. We will see the same name of the query and, in the next release, the number will be increased by one e.i test-2, test-3, test-4, etc.
Note: If the release version is already in use, Bamboo will show the following message "This release version is already in use, please select another.". Regarding this situation, we'll need to change it manually.