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

Bamboo Spec Deployment Project. Add new environment without replacing existing environment

Kalvinder Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 8, 2020

Hi,

 

Thanks for looking at this post. I am working on a use case where i have various build/deployment plans and many environments already created manually from the front end and i want to use Bamboo spec to dynamicaly add a new environment to all the deployment plans in the system. I am able to create a deployment plan using existing plan key etc but in the case of exisiting deployment plans if i just put the new Environment object in environments() method it deletes the existing environments. I can add all the existing environment object along with the new Environment object in environments() on Deployment Object but i believe it just replaces and recreates the existing environments which i dont want as i am not sure it retains the history for existing ones. Idealy i dont want to touch existing environments at all as PROD is one of them. Any Help would be great.

 

Thanks,

K Sat

1 answer

0 votes
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 10, 2020

Hi,

As long as environment in Bamboo and in Specs match, the existing environment will not be removed, only updated, with all the history retained.

You can use 'View as Java Specs' option in deployment configuration to get the code for all existing environments. Just copy-paste it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events