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);
...