It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Feature branch only runs tests, Master branch deploys.

So currently I have the master branch build, run tests, and deploy to an outside server.   I want to have feature branches just to build and run tests.  Can this be done with one plan?  Looks to me I would need two plans to do this.  One for master deployment on the master branch, and the other just to run tests.  Is this correct?  

2 answers

1 accepted

2 votes
Answer accepted

Different branches on a plan are for building different branches from your source control, but still have the same stages, jobs, and tasks.  So yes, you would have to break this up.

Typically, at least the way we do it, you would have one Build Plan that does your building and testing and another Deploy Plan (which is a whole other type of plan in Bamboo) that does your deployment steps. 

So then on the feature branches I can then turn off master branch some way, since the tests will run on deployment?  

Or do I have a test plan that does test on all branches then the deployment plan executes on master when the test plan finishes on master?  


I'd do it that second way.  Use the build plan to build and test all branches, whether feature or master.  And then use the deploy plan only to deploy master.  A deployment plan is linked to your build plan, so it deploys the results of a specific build.


You can use Cucumber For Bamboo plugin. This plugin adds Cucumber parsers in Build as well ad Deployment plans. It provides options to pass or fail build if any test is failed or based on failure threshold or can just print test results in Log without affecting deployment status.
The plugin also adds new UI elements to display deployment tests, Cucumbers results and pie chart of tests. It also has features to automatically link tests with JIRA issues.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

129 views 0 10
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