Generating different artifact for different environment

I have a single build Plan and a maven task defined as its job,the artifact is defined and shared which can be deployed to one environment.

But now I have three different deployment environment so for these 3 different deployment environment how do I generate 3 different artifact? Do I have to add 2 more task to the plan? If so will the task differ from each other or same configuration?

Please help me with some deep overview.

Thank you in advance.

3 answers

1 accepted

Thanks Rafael Sperafico

everything is clear but the only thing I am confused is reagard the usage of artifact in deployment environment.

Lets say I have defined an artifact with latest war and shared it for the deployment task and used this artifact for the Environment->A.

Now for environment->B,  Do I have to do another build and generate other artifact,define and shared again or shall I use the same artifact for other environment?

Another quick queries: single build plan and single linked repository is sufficient to accomplish this task right?

Your feedback will be highly appreciated..

0 votes

Hello Aakash,

Thank you for your question.

In Bamboo you have the following configuration:

Project / Plan
-- Default Stage
-- – Default Job
-- – – Task(s) 

Deployment / Environment
-- Task(s)

When you say:

I have three different deployment environment so for these 3 different deployment environment.

I am assuming you have:

Deployment / Environment A
-- Task(s)

Deployment / Environment B
-- Task(s)

Deployment / Environment C
-- Task(s)

If so, in the "Deployment / Environment A >> Tasks >> Artifact download" task you should be able to select the artifact generated in your "Project / Plan"

In the "Deployment / Environment B >> Tasks >> Artifact download" task you should be able to select the artifact generated in your "Project / Plan", which can be a different artifact from the above selected.

In the "Deployment / Environment C >> Tasks >> Artifact download" task you should be able to select the artifact generated in your "Project / Plan", which can be a different artifact from all above selected.

how do I generate 3 different artifact?

Please, refer to Configuring a job's build artifacts documentation for further information.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

0 votes

Hello Aakash,

You can use the same artifact ("latest war") in both Environments (A and B). Unless you do any changes to the artifact generated, there is no need to generate a new one.

Yes, are able to accomplish the requested with a single build plan and single linked repository.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

Suggest an answer

Log in or Join to answer
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,070 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot