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

"BUILD SUCCESSFUL" appearing shortly before a final "BUILD FAILED" message is misinterpreted as a successful build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.2
    • 1.2.4
    • Tasks
    • None

    Description

      As seen in BSP-439, if the text "BUILD SUCCESSFUL" appears in the last 100 lines of a build that ultimately fails and produces a "BUILD FAILED" message, Bamboo's Ant and Maven builder misinterpret this as a successful build.

      To address this issue, these builders should also search for "BUILD FAILED" messages as well, and act on the last message found in the build log.

      As a workaround, you can control the number of lines that Bamboo searches for a "BUILD SUCCESSFUL" message, by setting an environment variable named "SUCCESS_MESSAGE_LINES" before starting Bamboo. You can disable this search completely, relying solely on the return code of your build, by setting this environment variable to 0.

      Attachments

        Issue Links

          Activity

            People

              mark@atlassian.com MarkC
              ahempel Adrian Hempel [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified