bamboo deployment best practices

I've had a ball this week getting deployment plans in place for a number of projects (all very simple and very similar) and I have some generic questions.

When creating a deployment project the first deployment (to DEV) downloads the artifact and then I have steps that extract then copy the files (deploy) to the dev server. The deployable artifacts are not environment specific. All config files are excluded and no compile occurs during the build so there are no additional factors on that end (these are cold fusion projects)

Right now I'm downloading, extracting and copying in each environment deployment.

It seems risky but plausible that I COULD exclude the download and extraction steps for all future deployments of this same build since it is stored in a separate "deployment" project directory on the bamboo host during the dev deployment. Thus reusing the artifacts and just copying to subsequent environments in QA and PROD deployments.

There aren't any separate environment specific "folders" created in the bamboo deployment workspace are there? (so that the cwd is the same no matter what environment deployment is being run)? (Or is a new deployment workspace created for each subsequent environment?)

I think the down side is the risk that something could change in the deployment project between the time of the dev deployment and the time of the QA / PROD deployment altering the artifacts that I'm deploying to the advanced envs. (We have very restricted access to the bamboo host so the odds of anything occurring, by a force outside of bamboo itself, is limited).

Can anyone provide any thoughts on whether this is a real risk or not? Unexpected cleanup processes might run?

Thanks in advance,


1 answer

1 accepted

0 votes
Accepted answer

Each environment does have it's own working directory. The default location is at bamboo-home\xml-data\build-dir\{0}-{1} where {0} is your Deployment project Id and {1} is your Environment Id. You can see the ID's in the query string from the web view or use the (currently unofficial) API to get it in JSON http://{Bamboo}/rest/api/latest/deploy/dashboard

Ah, I only have a single environment for each deployment so far so it wasn't apparent. Thanks Jason

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 ...

158 views 3 5
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