Is it possible to have a stage in a Bamboo plan start even though the previous one has failed?
Asked Answered
O

5

8

I have a Bamboo plan configuration with several stages. Now I want to have these stages to execute in certain order, but independently of the result of the previous stage.

This seems to be impossible with Bamboo. Subsequent stages are executed only if the previous one is successful.

Any thoughts?

Overflight answered 12/1, 2012 at 14:12 Comment(1)
Really dumb that this still isn't supported within a plan. Shouldn't have to clutter your plans to manage this simple configuration.Isham
K
2

"Now I want to have these stages to execute in certain order, but independently of the result of the previous stage."

The statement seems self contradicting. If you want the stages to execute in order, that implies some dependency/coupling between them. Yet you want them to execute independently of the result of the previous stage.

The they are truly independent you can configure them as independent jobs as part of one stage. These jobs(which may contain several ordered tasks) will execute independently and in parallel.

Please see the following for more details:

http://quickstart.atlassian.com/download/bamboo/get-started/bamboo-elements

Hope this helps other who stumble upon this question.

Kernan answered 31/1, 2013 at 19:51 Comment(2)
It's not contradictory. It's the same concept as the 'finally' part of try/catch in software developmentIsham
An example of where this is needed is when one stage deploys, stage two runs integration tests, and stage three removes the deployment. You want to be able to remove the deployment even if the tests failed, but the overall status should be a failure.Diskin
F
2

Might be off-topic.

But if your only purpose is to make sure that some activities are not executed in parallel and the order does not matter, then you may try to configure these activities using Jobs.

Bamboo documentation states the following:

 Jobs within a given Stage will run in parallel as long as there are agents available to execute them.  Otherwise, Jobs run one at a time in no particular order.

It means that if there is only 1 agent available, then there will be no parallel execution and jobs will be executed one by one.

Folksy answered 10/12, 2013 at 13:46 Comment(0)
P
1

Dependencies is the way to do this. Separate your stages into separate plans. Have each plan depend on (be triggered by) the prior plan.

This doesn't give you exactly the same results, but it is the only way to do it if you need ordered stages.

Partisan answered 6/3, 2012 at 20:45 Comment(0)
C
0

Use Dependencies tab to do this, else use ant script.

Cohere answered 6/2, 2012 at 14:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.