Building artifacts for both test and production environments

Hi,

What would be the best way to configure a build so that after it is run you have artifacts for both test and production environments?

Currently I have a plan with the default job containing about 10 different maven builds. The maven builds are parameterized with a bamboo parameter (which may be specified with the "run parameterized" option or just using the default value).

So now the job produces artifacts for eg. the test environment by giving the profile id to maven normally, like -Ptest (test comes from the bamboo variable)

I can then also run the job so that it provides the artifacts for the production environment.

But I would like to have the system to automatically run both builds so that I get the artifacts for both environments automatically. Now I have to know which build was made with which profile setting and that isn't very convenient (I would want to be able to download the latest build's artifacts for both environments wihtout specifying a build number).

So how can I duplicate the Tasks for one Plan / Job automatically? I wouldn't want to manually have to specify an identical Plan for each environment.

1 answer

We do this by having multiple jobs in our build stage. Each job builds a different configuration (Test, Release, etc.)

So they can be build in parallel.

Ok, so you had to manually create identical jobs with identical tasks (just using different config options)?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
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,321 views 0 5
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