Ant Task not catching failure

Hi Everyone,

I may have missed something when setting up the ant task but when I run an ant task in final builder regardless of whether the task fails or is successful Final builder returns that it is successful.  This is a huge issue because after the build returns success we then move the new build to an archive and deploy that to all of our qa environments.  Recently the new code being delivered has caused the build to fail, this is normal in the software developement life cycle but I was hoping that FB would return the failure and the deploy would not run.

My current version is 5.5.0.562, is there a specific flag I need to set for this to catch the "Build Success" or "Build Failed" message in the ant log or do I need to script this out?

 

Please let me know if anyone has run into this as well.

 

I appreciate your time.

Nick

 

 

Hi Nick,

I’ve just sent you a reply via support, with a link to a test build with a fix for this issue.

The specific error message from your Ant task must not be being correctly flagged as an error, because this is how the action previously detected error conditions. The updated action will also process the exit code from Ant.bat. This is not as straightforward as it sounds, due to some inconsistencies between batch file error codes and process error codes, but the new action should deal with it correctly and you should see the failure behaviour that you would expect.

Regards,

Angus