Is there any way to get Quarantined test info within a Task?

I've got a Bamboo job that parses the JUnit output of a PHPUnit test run, and the exit code from PHPUnit is tied to a short command that notifies GitHub of pass/failure. Pretty straightforward. However, some of those tests are quarantined, so while PHPUnit may return non-zero and then GitHub will be notified of failure, my run may still be green in Bamboo because of quarantined tests.

Is there some way I can get a list or details about quarantined tests from within a Task? It seems like that info is silo'ed inside Bamboo.

1 answer

1 accepted

Hello Collin,

You could probably use Bamboo REST Api ( ) to retrieve information about quarantined tests for a particular result. Not sure if you could poll from the task for the quarantined tests for the latest build result (i.e. exactly that one to which the task execution belongs to), but maybe quarantined tests in the previous build would be good enough for you?

If so, I think you could use some script to gather and process data from something like:

curl -u username:password

The response should contain <quarantinedTests> nodes if there was any quarantined failing test.

However, if you can't use that approach then your only option (IMHO) would be to hack a new Task for Bamboo (as a new plugin). In that case please chime in, as I think I have somewhere snippets for retrieving quarantined tests per plan - I could share them with you if necessary.


Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

443 views 2 5
View question

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