Setting up a Bamboo Plan

I am currently porting over my TeamCity setup to Bamboo and I've noticed I have to rely heavily on artifacts which seem to significantly increase the time it takes to build increase the disk space required. It's very possible I am misusing artifacts so I will give you an idea as to what my setup is.

My first stage is a checkout and build stage which has tasks to checkout my code, build my code, and run code analysis against the code. Pretty straightforward.

The next stage actually attempts to deploy the application to the dev server. It copies an app_offline.htm file to the server, deploys the application to the server, and then recopies the app_offline.htm file to the server (because there's more work to be done before the server should become available to testers again).

The problem is that for the second stage I need all of that compiled application from the first stage. This is easily done with an artifact but that's a lot of stuff (aspx pages, dlls, javascript files, etc.) that are being copied as artifacts so it can take a while to copy over.

I could just put all of these steps in one stage but then I'm not keeping an ideal separation of processes. I imagine I'm doing something wrong or just not understanding Bamboo's process correctly. Any ideas?

1 answer

1 accepted

1 vote

Stages should typically be used when you need to make sure that a set of Jobs (Jobs are run in parallel) has successfully completed building. There's nothing wrong in having just a single stage in your plan.

Don't think of a stage as something that organises your plans, it's not that - from your description you should have a single Job with multiple tasks.

Rule(s) of thumb:

- if you need to independently build stuff in parallel add Jobs.

- If you need to wait until a set of Jobs completes, add a Stage.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,788 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you