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