Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

How to create multiple plans for multiple projects


I am new with Bamboo. I am trying to create multiple plans for multiple projects using java spec and want to pass dynamic values to java spec like application name, repo link, bamboo server url. Can anybody help me on this how to achieve this and project structure in bitbucket.

3 answers

0 votes
Jimmy Seddon Community Leader May 14, 2019

Hi @Hema,

Welcome to the community!

What I did to accomplish this was first I exported the Java specs template, then I used that a a blue print to create a new class specific to the type of dot net project we are building.

We made sure that our developers are building the nuget package projects in a consistent manner so that we could make a generic build plan class that would take in a few pieces of unique information such as name, plan key, linked repo name and a couple of boolean values for options tasks to be enabled or disabled.

The main class itself would then have a number of methods that would build the structure of the plan based on the template I stated with while using the values that were past in via the main method.

Lastly, I set this up as a build plan & deployment project itself so that all I have to do now is update the main method and check in the changes and it will within seconds create a new build plan with the values specified.

I may have over engineered this a bit but it's saving me hours of work at a time.

I hope that helps answer your question.


Hi ,
Thanks for answering.
I am also trying to create template and pass values to it.
And I am trying to read some values from properties file and pass to method.
So what should be structure of project when we use prop file
0 votes
Jimmy Seddon Community Leader May 16, 2019

Hi @Hema,

First, I do not claim to be any sort of expert in how to properly structure a java project, so I can share what I did but I'm sure there are better ways out there.

Becuase I setup a java project for our specs that uses Bamboo to build and deploy the specs project, I chose not to use a properties file but instead to pass in command line arguments that are using bamboo variables.

From there I have a class that runs the main method and all it is responsible for doing is generating all of the build plan objects and then running the publish command to create new or update existing if that same plan has already been deployed to the server.

Next from there I have a Build plan class (technically two as we are changing the structure in our projects from one standard set to another)

This class has a few fields that get populated when it is called in the main method by the constructor and it has a number of methods (one for each type of task that will exist in the plan).  I then create all the tasks calling the methods that create the various types of tasks and passing in the relevant information the task needs (This is where I used the "View Plan as Java Specs" action when editing an existing plan to have a template of what it is expecting so I knew the structure I needed to build.

From there it was a matter of making the task methods generic enough that I don't need a method for every unique task and a bunch of hard coded values, but specific enough that I can do what i need without a ton of if/else logic in the task method.

I hope that helps give you a bit more detail into what I've done.


Hi @Jimmy Seddon 
Now I am facing another issue on prod bamboo instance. Creating Plan repository using bitbucket server from bamboo spec is not creating. It is giving error like Request to stash failed. Returned with 401. Response body is empty. When i saw log for it it is failing at OAuthApplinkexecutor. I am not getting why it is failing with 401. When I am passing ssh keys and app link for creating plan repo.
When I published plan from local to bamboo server then creating plan repository using bitbucket server but not with bamboo spec.
When I tried to create plan repository using GitRepository from bamboo spec then it is working but using bitbucket server repo, it is failing.
Please help me.

Jimmy Seddon Community Leader Jun 17, 2019

Hi @Hema,

I'll be honest I haven't actually created linked repositories with Bamboo Specs, I have always just reused existing linked repositories.

However, a 401 error would indicate that your credentials are invalid.  Given where it's failing I'm wondering if you might have a error in the way/value you provided for the SSH private & public keys.

I hope that helps.


Suggest an answer

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

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

244 views 4 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