The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bamboo plan repository configuration not changing

Kevin Mitchell
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!
November 17, 2011

I'm trying to update the repository configuration (change the CVS branch name) of a plan via the API, but it's not persisting across system reboots.

What am I missing? I can't find anything in the forums relating to this.

below is the code snippiet:

...

Plan defaultPlan = planManager.getPlanByKey(CIT-TMPLT);

Repository repo = defaultPlan.getBuildDefinition().getRepository();

((CVSRepository)repo).setBranchName(BRN2);

planManager.savePlan(defaultPlan);

...

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 20, 2011

> planManager.savePlan(defaultPlan);

please try:

planManager.savePlanAndDefinition(defaultPlan);

Please note however that this code will not work in Bamboo 3.3 and later due to introduction of Multiple Repositories

TAGS
AUG Leaders

Atlassian Community Events