Is it possible to disable a build step in bamboo for a branch plan

I have a build plan that by default has a build step that pushing a build component to a deployment tool called urban code deploy.  Typically we only "build" CI related branches ... develop and release.

 

I have had some developers ask to build feature branches, but I do not want to push the built asset to my deployment tool repository because I will never deploy builds to my target servers from feature branches.  Is is possible for me to disable a build step for a given branch plan?

1 answer

This widget could not be displayed.

It would help if you provided some details on which task you are trying to disable for feature but from Bamboo point of build plans, I don't think you can automate the plan to disable a task for feature branches and run for other branches

That being said, I do have an alternative for you to consider. All tasks you do using plugins can be done in script task. So, I would consider using the script task and have this condition:

if [[ ${bamboo.planRepository.branchName} =~ feature* ]]

echo Not performing push to deployment tool

else

Your task to push build asset to deployment tool

 Get bamboo variable for plan branch and match the keyword for your feature branch in a if else condition

Thank you for your reply.  It is a script and I was in the process of implementing the same solution.  I do appreciate your feedback.  It would be a nice feature to be able to disable certain build tasks based upon a branch plan.

 

eric

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Friday in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

135 views 5 2
Join discussion

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