Bamboo indicates that my Ant or Maven builds failed, even though they were successful

Please note this Bamboo functionality relates only to the Maven Task and Ant Task outputs.

If your plan's build logs indicate that your Maven or Ant builds are passing but Bamboo is reporting them as failed (or vice-versa), it could be that:

  • Bamboo is not finding 'BUILD SUCCESS' in your build logs
  • Bamboo is finding 'BUILD FAILED' in your build logs when it should not be doing so. (This marker is not used in Maven.)
  • Your builds are returning a non-zero return code. (For example, the build log will indicate Build process for 'ABC Application - XYZ Build' returned with return code = 1.)

If your builds produce atypical or non-standard output, you can make Bamboo check for text other than 'BUILD SUCCESS' or 'BUILD FAILED' in your build logs. An additional system property is available to specify how far back in the logs Bamboo checks for these text markers.

System Property

説明

既定値

atlassian.bamboo.builder.successMarker

Specifies the text (or string) that Bamboo looks for in the build log to determine if the build was successful

BUILD SUCCESS

atlassian.bamboo.builder.failedMarker

Specifies the text (or string) that Bamboo looks for in the build log to determine if the build failed

BUILD FAILED

SUCCESS_MESSAGE_LINES

Specifies the number of lines from the end of the builder log in which to check for the values of atlassian.bamboo.builder.successMarker or atlassian.bamboo.builder.failedMarker.

250

For instructions on how to configure a system property, please refer to the Starting Bamboo page.

最終更新日 2017 年 9 月 28 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.