Bamboo Failure Conditions

Steve Chapman June 18, 2014

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

0 votes
dustin_barnes June 19, 2014

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...

0 votes
Kyle Varga June 18, 2014

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.

0 votes
Ben Dry June 18, 2014

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events