Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-15496

Build is successful when Maven fails and tests are quarantined

      Problem

      Build is successful when Maven fails and tests are quarantined. It looks like using the 'Use Maven return code' feature is not working when used with quarantined tests. In the example below, Maven returned an error code but it looks like Bamboo ignored it, maybe mistaking it for a failed test.

      Steps to reproduce

      Make sure that Maven tasks have 'Use Maven return code' checked. Run a build with quarantined tests.

      // this is correct
      simple	23-Jan-2015 14:03:31	Failing task since return code of [/opt/maven-3.2/bin/mvn -Djava.io.tmpdir=/tmp/AMDN-AMDNRELEASE-JOB1 release:perform --batch-mode -DignoreSnapshots=true -Dresume=false] was 1 while expected 0
      simple	23-Jan-2015 14:03:31	Parsing test results under /mnt/bamboo-ebs/bamboo-agent/build-dir/AMDN-AMDNRELEASE-JOB1...
      simple	23-Jan-2015 14:03:31	Injected variable bamboo.mvn.release.releaseVersion=0.6.38 in RESULT scope
      // this is not correct: all tests pass but maven had an error and did not produce any artifact
      simple	23-Jan-2015 14:03:31	Changing Task Result to SUCCESS as all failed tests were quarantined.
      

      Bamboo detects the task is failing (1st line of the exemple above), but doesn't mark the whole build as failed.

            [BAM-15496] Build is successful when Maven fails and tests are quarantined

            Martyna Wojtas (Inactive) made changes -
            Resolution New: Timed out [ 10 ]
            Status Original: Gathering Impact [ 12072 ] New: Closed [ 6 ]

            Atlassian Update - 23 June 2020

            Hi,

            Thank you for raising this issue. We regret to inform you that due to limited demand, we have no plans to implement it in the foreseeable future. In order to set expectations, we're closing this request.

            This is an automated update triggered by low user engagement with this suggestion (number of votes, number of watchers).

            Although we're aware the issue is still important to those of you who were involved in the conversations around it, we want to be clear in managing your expectations. The Bamboo team is focusing on issues that have broad impact and high value, reflected by the number of comments, votes, support cases, and customers interested. Please consult the Atlassian Bugfix Policy for more details.

            We understand how disappointing this decision may be but we want to be fully transparent when communicating with our users.

            Atlassian will continue to watch this issue for further updates, so please feel free to share your thoughts in the comments.

            Thank you,

            Bamboo Team

            Martyna Wojtas (Inactive) added a comment - Atlassian Update - 23 June 2020 Hi, Thank you for raising this issue. We regret to inform you that due to limited demand, we have no plans to implement it in the foreseeable future. In order to set expectations, we're closing this request. This is an automated update triggered by low user engagement with this suggestion (number of votes, number of watchers). Although we're aware the issue is still important to those of you who were involved in the conversations around it, we want to be clear in managing your expectations. The Bamboo team is focusing on issues that have broad impact and high value, reflected by the number of comments, votes, support cases, and customers interested. Please consult the Atlassian Bugfix Policy for more details. We understand how disappointing this decision may be but we want to be fully transparent when communicating with our users. Atlassian will continue to watch this issue for further updates, so please feel free to share your thoughts in the comments. Thank you, Bamboo Team
            Martyna Wojtas (Inactive) made changes -
            Labels Original: triage-reviewed New: bamboo-bugs-grooming triage-reviewed
            Pawel Skierczynski made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 1442748 ] New: JAC Bug Workflow v3 [ 3385254 ]
            Status Original: Open [ 1 ] New: Needs Triage [ 10030 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            SET Analytics Bot made changes -
            Support reference count New: 1

            I'm also seeing this behaviour for Ant tasks, on 5.10.3

            Daniel Hodder added a comment - I'm also seeing this behaviour for Ant tasks, on 5.10.3
            Krystian Brazulewicz made changes -
            Labels New: triage-reviewed
            Krystian Brazulewicz made changes -
            Component/s New: Maven [ 13073 ]
            Component/s Original: OnDemand [ 18503 ]

              Unassigned Unassigned
              brosa Bruno Rosa
              Affected customers:
              1 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: