Conditionally Skip Tasks in Bamboo Build

I have a release build plan which is manually executed when we want to create a release.  There is one parent project and a bunch of child projects.

The plan build each child project if required and then builds the parent project using the latest available version of the child projects.

To make this work I need to conditionally skip the remaining tasks of a child project build if there are no changes. I do not want to fail the build, as no action is required.

I have setup a script task to compare svn revisions and if the same I want to skip all other tasks without failing the build.

 

3 answers

2 votes

You can't do it in Bamboo. The only way is to change all your tasks to script tasks and have the condition in the script.

thanks Justin for asking this question and thanks Przemek for answering it. 

we have run into similar situation. We have to create 2 plans for the same repository, one for build only, the other one for build and deployment. The reason behind is that we have a delicate build server and we can't flood it with too many build packages.

It looks to me a legitimate requirement to have conditional build tasks, i.e. skip a job/task when a certain condition holds true. I believe there are enormous use cases for this feature. However, as Przemek mentioned, it's not currently supported.

Is there any particular reason why Bamboo doesn't want to do this, or, it's just a feature nice to have, but the engineer team doesn't have time. 

Also , we try to avoid having duplicated build plans for different deployment settings (there is a maintenance overhead to syn those duplicated plans). if you any suggestions, please let us  know. thanks!

 

Does a feature request exist for this?   I would vote for it

 

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,077 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