Build status showing Success even though there were failures

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only. This article only applies to Atlassian products on the server and data center platforms.

Summary

A build result status shows as Successful, however, there were failures during the build execution.

Environment

Bamboo with Quarantine enabled.

Diagnosis

Reviewing the build result logs, you can see the following message that indicates the task status is changing from FAILED to SUCCESS because its tests were quarantined.

simple	10-Jun-2022 06:33:31	Failing task since return code of [...] was 1 while expected 0

simple	10-Jun-2022 06:33:31	Parsing test results under /data/shared/build-dir/<BUILD_KEY>...

simple	10-Jun-2022 06:35:12	Changing Task Result to SUCCESS as all failed tests were quarantined.

simple	10-Jun-2022 06:35:12	Finished task 'Maven 3.x' with result: Success

Cause

Tests that failed but were quarantined won't affect the build's overall status.

Solution

  1. Go to the Build Result that shows as successful but had failing tests.
  2. Go to the Tests tab.
  3. You should see one (or more) tests there.
  4. You can remove them from Quarantine by clicking their respective Settings icon > Resume.


    You can still keep tests quarantined, just resume those that, if failed, should also fail the build. More details on Quarantining failing tests.

Last modified on Jun 29, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.