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
Highlighted

Deployment in bamboo for different environments Edited

I have a few concerns with my deployment plan on bamboo. It's a java project with maven for build. 

So, we have a project where there are multiple modules and the basic structure used is the one defined by maven. The path to resources is also default src/main/resources

The deployment plan has these 3 tasks : 

i>Artifact download

ii>Script

iii>Maven 3.X

iv>Deployment Plugin

Now there are couple of things which are bothering me with respect to the deployment plan : 

1) We have multiple environments and hence there is an inline script task (ii) in the deployment plan opens the .properties file from the artifact (in this case a jar) unzips the jar rewrites the values and zips it up. Shouldn't we handle this in a better way? Tried having the different .properties file for different environment and use the maven profiling but the problem with this approach is one of the modules has 20 .property files and across 3 environments which implies there are 60 files! That's cumbersome to manage.

2) We use the command in goal for the step (iii)'-U -e -X clean install' and then set the environment variables too.  Shouldn't we use 'deploy' instead of '-U -e -X clean install' and can the environment variables such as SR_INSTANCE,SR_MEMORY etc. be managed else where? 

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

382 views 1 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