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

This widget could not be displayed.

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

This widget could not be displayed.

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.

This widget could not be displayed.

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 Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

202 views 1 3
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