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

Bamboo plan repository configuration not changing

Kevin Mitchell 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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events