I'm having a problem similar to the one described in "Access denied : creating deployment project through Bamboo specs". Here's the link:
The solution described does not seem to work for me. I have tried deleting the deployment project, recreating it and configuring it's permissions as described, but the YAML specs in the Bitbucket repo, when scanned, continue to generate this error message:
The plan stored in repository 'Canary Deployment bamboo test' is not permitted to create new deployment projects com.atlassian.bamboo.exception.UnauthorisedException: The plan stored in repository 'Canary Deployment bamboo test' is not permitted to create new deployment projects
And, on the Bamboo server side, I can see this error in the log:
2019-09-20 20:07:16,367 INFO [15-BAM::SpecsDetection:pool-22-thread-4] [RepositoryStoredSpecsServiceImpl] Bamboo YAML import failed
com.atlassian.bamboo.exception.UnauthorisedException: The plan stored in repository 'Canary Deployment bamboo test' is not permitted to create new deployment projects
I've verified that all the permissions are there. At least, all that I can find in the documentation. Any thoughts on what else I can try? Or if deployment plan YAML specs in a repo are supposed to be supported?
Well, after looking at the problem for a long time, I realized the YAML deployment plan name was slightly different than the UI deployment plan name. That was what was causing the permissions error - the YAML spec was trying to create a deployment plan that did not already exist.
Everyone should note that the deployment: name: field in the YAML needs to EXACTLY match the deployment plan name displayed in the UI.
Thanks for sharing. I was about to share that I was able to make it work by adjusting the following permissions:
I'm glad that you found what was causing the issue.
Anyone has an idea how to solve this issue. I tried to create a build plan from scratch using Bamboo YAML specs and get the same issue.
09-Jun-2021 17:27:46 The plan stored in repository 'xxxx-bamboo-specs' is not permitted to create new deployment projects 09-Jun-2021 17:27:46 com.atlassian.bamboo.exception.UnauthorisedException: The plan stored in repository 'xxxx-bamboo-specs' is not permitted to create new deployment projects 09-Jun-2021 17:27:46 at com.atlassian.bamboo.configuration.external.DeploymentImportServiceImpl.lambda$importDeployment$0(DeploymentImportServiceImpl.java:284) 09-Jun-2021 17:27:46 at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate.execute(BambooTransactionHibernateTemplate.java:28) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.configuration.external.DeploymentImportServiceImpl.importDeployment(DeploymentImportServiceImpl.java:260) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.configuration.external.rss.DefaultSpecsConsumer.importDeploymentProperties(DefaultSpecsConsumer.java:180) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.configuration.external.rss.importers.DeploymentProjectImporterProvider.lambda$getEntityImporter$0(DeploymentProjectImporterProvider.java:37) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.configuration.external.rss.AllTypesSpecsImporter.importBambooYamlsWithImporter(AllTypesSpecsImporter.java:88) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.configuration.external.rss.AllTypesSpecsImporter.importBambooYamlsOfAllTypes(AllTypesSpecsImporter.java:52) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.configuration.external.rss.YamlSpecsImportServiceImpl.lambda$processSimplifiedYaml$2(YamlSpecsImportServiceImpl.java:112) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.configuration.external.rss.SpecsOptimizeProcessor.processSpecs(SpecsOptimizeProcessor.java:42) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.configuration.external.rss.YamlSpecsImportServiceImpl.processSimplifiedYaml(YamlSpecsImportServiceImpl.java:108) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.tryProcessYaml(RepositoryStoredSpecsServiceImpl.java:329) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.runBambooSpecs(RepositoryStoredSpecsServiceImpl.java:178) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.configuration.external.RssDetectionServiceImpl.runRssDetection(RssDetectionServiceImpl.java:374) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.configuration.external.detection.RssDetectionRunnable.run(RssDetectionRunnable.java:42) 09-Jun-2021 17:27:46 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 09-Jun-2021 17:27:46 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 09-Jun-2021 17:27:46 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 09-Jun-2021 17:27:46 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17) 09-Jun-2021 17:27:46 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41) 09-Jun-2021 17:27:46 at java.lang.Thread.run(Thread.java:748)
G’day Bamboo customers, The wait is almost over! We are in the final stages of work on the first release of Bamboo Data Center, our self-managed enterprise offering of Bamboo. This Data Center offe...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events