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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,502
Community Members
 
Community Events
184
Community Groups

Could not update chain with key {BambooKey}-{planKey} as it's being modified in another thread.

Edited

My spec

BambooServer bambooServer = new BambooServer("{bamboo url here}");
final PlanSpec planSpec = new PlanSpec();

final Plan plan = planSpec.plan();
bambooServer.publish(plan);

final PlanPermissions planPermission = planSpec.planPermission("SIT");
bambooServer.publish(planPermission);

final Deployment rootObject = planSpec.deployment();
bambooServer.publish(rootObject);

final DeploymentPermissions deploymentPermission = planSpec.deploymentPermission();
bambooServer.publish(deploymentPermission);

final EnvironmentPermissions environmentPermission1 = planSpec.environmentPermission1();
bambooServer.publish(environmentPermission1);

final EnvironmentPermissions environmentPermission2 = planSpec.environmentPermission2();
bambooServer.publish(environmentPermission2);

//runner test
final PlanSpec planSpecRunner = new PlanSpec();

final Plan planRunnerOnTest = planSpecRunner.planRunnerOnTest();
bambooServer.publish(planRunnerOnTest);

final PlanPermissions planRunnerOnTestPermission = planSpecRunner.planPermission("SITR");
bambooServer.publish(planRunnerOnTestPermission);

//runner pre-prod
final PlanSpec planSpecRunnerPreProd = new PlanSpec();

final Plan planRunnerOnPreProd = planSpecRunnerPreProd.planRunnerOnPreProd();
bambooServer.publish(planRunnerOnPreProd);

final PlanPermissions planRunnerOnPreProdPermission = planSpecRunnerPreProd.planPermission("SITRP");
bambooServer.publish(planRunnerOnPreProdPermission);


java.lang.IllegalStateException: Could not update chain with key DISI-SIT as it's being modified in another thread. 15-Jan-2021 11:58:16 at com.atlassian.bamboo.configuration.external.PlanConfigImportServiceImpl.modifyExistingTopLevelPlan(PlanConfigImportServiceImpl.java:467) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.configuration.external.PlanConfigImportServiceImpl.lambda$importPlan$0(PlanConfigImportServiceImpl.java:424) 15-Jan-2021 11:58:16 at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate.execute(BambooTransactionHibernateTemplate.java:28) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.configuration.external.PlanConfigImportServiceImpl.importPlan(PlanConfigImportServiceImpl.java:403) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.configuration.external.rss.DefaultSpecsConsumer.importPlanProperties(DefaultSpecsConsumer.java:120) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.configuration.external.rss.importers.PlanImporterProvider.lambda$getEntityProvider$1(PlanImporterProvider.java:38) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.configuration.external.rss.AllTypesSpecsImporter.importBambooYamlsWithImporter(AllTypesSpecsImporter.java:88) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.configuration.external.rss.AllTypesSpecsImporter.importBambooYamlsOfAllTypes(AllTypesSpecsImporter.java:52) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.configuration.external.rss.JavaSpecsImportServiceImpl.lambda$processSpecs$2(JavaSpecsImportServiceImpl.java:77) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.configuration.external.rss.SpecsOptimizeProcessor.processSpecs(SpecsOptimizeProcessor.java:42) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.configuration.external.rss.JavaSpecsImportServiceImpl.processSpecs(JavaSpecsImportServiceImpl.java:63) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.runBambooSpecs(RepositoryStoredSpecsServiceImpl.java:175) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.configuration.external.RssDetectionServiceImpl.runRssDetection(RssDetectionServiceImpl.java:330) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.configuration.external.detection.RssDetectionRunnable.run(RssDetectionRunnable.java:42) 15-Jan-2021 11:58:16 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 15-Jan-2021 11:58:16 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 15-Jan-2021 11:58:16 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 15-Jan-2021 11:58:16 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17) 15-Jan-2021 11:58:16 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41) 15-Jan-2021 11:58:16 at java.lang.Thread.run(Thread.java:748)

1 answer

The same thing works when I scan from Linked repo.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events