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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Access denied : creating deployment project through Bamboo specs

Hi,

I am trying to Create a deployment project through bamboo specs .I am facing an error stating that my bamboo specs doesn't have authorization to create deployment project . What permissions should I provide for bamboo specs repository ? I can create & edit build plan and edit deployment plans but cannot create deployment project .

Thanks,

Naveen

2 answers

If you need to allow creation of deployment projects from Bamboo Specs you should grant All projects permission at Bamboo Specs tab of repository. Same tab you used to enable Bamboo Specs for that repo.

We cannot provide access to all Projects for a Bamboo specs repository because each project has its own specs and it is not allowed to access other project's . Is there any alternative ?

Create deployment project manually and then manage it via Bamboo Specs

Thanks for the reply Alexey . We are currently manually creating deployment project and providing authorization to Bamboo Specs . It's kind of hectic to create manually every time  and thus looking to see if it can be created automatically and what access is required for it . Is providing access to all projects is the only way for it ?

Thanks,

Naveen

If you want to create deployment project from Bamboo Specs code in repository, then yes - it's the only way.

Hi  @Alexey Chystoprudov. after your suggestion above we have:

1) Created manually a Deployment project linked to a repository

2) Generated the Deployment Specs using the View project as Java Specs option

2) Uploaded it to the linked repository

 

We expected this way to be able to modify the Specs without needing to grant All projects permission at the Bamboo Specs tab.

Unfortunately, we still get the UnauthorisedException below:

 

com.atlassian.bamboo.exception.UnauthorisedException: The plan stored in repository 'XXX' is not permitted to modify the deployment project 'YYY'

01-Jan-1970 01:00:00             at com.atlassian.bamboo.configuration.external.DeploymentImportServiceImpl.lambda$importDeploymentPermissions$1(DeploymentImportServiceImpl.java:272)

01-Jan-1970 01:00:00             at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)

 

Any idea why?

Hi @sudip saha ,

The Bamboo Specs linked repository needs to be linked to the project.

Navigate to your project settings, and select "Bamboo Specs repositories" in the "Security" section on the left side of the screen. From there, add the linked repository to the list of repositories.

You should now be able to re-scan the linked repository where the Specs are stored, and it will publish as long as there are no compilation errors.

 

Cheers

Hi @sudip saha ,

The Bamboo Specs linked repository needs to be linked to the project.

Navigate to your project settings, and select "Bamboo Specs repositories" in the "Security" section on the left side of the screen. From there, add the linked repository to the list of repositories.

You should now be able to re-scan the linked repository where the Specs are stored, and it will publish as long as there are no compilation errors.

 

Cheers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

673 views 1 6
Read article

Community Events

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

Events near you