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

This widget could not be displayed.

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.

 

This widget could not be displayed.

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 Sign up to answer
Community showcase
Posted 11 hours ago in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

32 views 1 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