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

bamboo deployment best practices

Gretchen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 26, 2013

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,

GJ

1 answer

1 accepted

0 votes
Answer accepted
Jason Monsorno
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 26, 2013

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

Gretchen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 26, 2013

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
TAGS
AUG Leaders

Atlassian Community Events