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
Accepted answer

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
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

58 views 3 2
Join discussion

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