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

YAML Deployment Plan Permissions Error

Geary Sutterfield September 20, 2019

I'm having a problem similar to the one described in "Access denied : creating deployment project through Bamboo specs". Here's the link:

https://community.atlassian.com/t5/Bamboo-questions/Access-denied-creating-deployment-project-through-Bamboo-specs/qaq-p/784854

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? 

Thanks

1 answer

1 accepted

2 votes
Answer accepted
Geary Sutterfield September 23, 2019

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.

Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 23, 2019

Thanks for sharing. I was about to share that I was able to make it work by adjusting the following permissions:

  • Specs repository >> Bamboo specs >> Access >> Access all projects
    This one is needed to allow project creation.
  • Specs repository >> Permissions >> Bamboo Specs repositories access
    This one is needed to allow the use of repositories that are referenced in the Plan and Deployment project.

I'm glad that you found what was causing the issue.

Sunil Singla September 21, 2020

I am also facing same issue. But Bamboo append/perpend some characters after/before the name so in that case how i can use the same name and even i can't apply access to all projects because all projects not created by my team.

Tikki June 9, 2021

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)

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events