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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.