Bamboo Failure Conditions

I'm evaluating Bamboo and would like to know if it's possible to fail a build based on a comparison of metric deltas with prior builds. Sample use-case would be: fail if code coverage drops and lines of code increases or remains the same.

Thanks in advance.

3 answers

We are in the exact same situation and would also like to know this.

I haven't seen such a thing. However, you could probably make a script to handle it. For example

Build 1:

  • Run build
  • Calculate test coverage
  • Upload test coverage to FTP or somewhere else

Build 2:

  • Run build
  • Calculate test coverage
  • Compare test coverage to FTP Site / etc
  • Return 1 if it should error, 0 if not. etc

It is not ideal, but would work with not much outside dependencies. Maybe a way to do this using build artificats as well, but not positive.

I went through this. Long story short, if you're using a modern bamboo (> 5.1) , there is NOTHING that currently exists to track code quality. Not even to report it in a nice way. The checkstyle/coberture/etc plugins haven't been touched in years. Bamboo itself doesn't handle it. I find it to be one of the biggest shortcomings of the Bamboo tool.

If quality metrics are a core part of your build (as they are mine), you'll have to find another solution...

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

103 views 3 4
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