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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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,321 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