The checkReturnCode() method - https://docs.atlassian.com/bamboo/5.1/com/atlassian/bamboo/task/TaskResultBuilder.html#checkReturnCode(com.atlassian.utils.process.ExternalProcess,%20int) - has the unfortunate behavior that is documented as "Will only check tests if the build state has not been set to Failed for some other reason.".
This means that you cannot check for more than one exit code, because if you check for the first and it fails (i.e. it is not that code), you will not be able to check another one that might have succeeded.
How can I workaround this?
Alternatively, is there a way to just retrieve the return code? That would solve the problem.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.