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 | 説明 | 既定値 |
|---|---|---|
| Specifies the text (or string) that Bamboo looks for in the build log to determine if the build was successful | BUILD SUCCESS |
| Specifies the text (or string) that Bamboo looks for in the build log to determine if the build failed | BUILD FAILED |
| Specifies the number of lines from the end of the builder log in which to check for the values of | 250 |
For instructions on how to configure a system property, please refer to the Configuring system properties page.
2 Comments
Charles Albrecht
Mar 08, 2013Does the
SUCCESS_MESSAGE_LINESchange only apply to the server itself or does it need to be changed on each agent where the problematic tasks might be running?Kees Schepers
May 07, 2013I am using some tools like phpmd, phpcs, phpcpd etc. These pear libraries do return a exit status != 0 when there is only 1 violation. This makes the build being marked as failed while I have added the checkstyle plugin with an error threshold of 10 errors.
I can modify the markers but I can't tell Bamboo to NOT fail when a ANT script is returning a non-zero exit code. Actually I think it should work like that because if I really want it to fail I would set the resultonerror="true" property in my ANT executable.
Can this be solved in anyway?