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

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.
https://marketplace.atlassian.com/plugins/com.mdb.plugins.cucumberforbamboo/server/overview

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