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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 2.2
    • Affects Version/s: 1.2.4
    • Component/s: Tasks
    • None

      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.

              Assignee:
              MarkC
              Reporter:
              Adrian Hempel [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

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