I have written a script under "Misc->Execute Script".
After sync the code from perforce the script executes and validated some input given by user.
Problem is if validation fails script will terminate and next step executes.
To mark the build fail I have to throw a execption. Eg: ( throw new QuickbuildException ).
Due to this a lots of logs gets printed and user is not able to make out the exact error.
Looking at the log user thinks it is some environment issue as they do not know we are explicitly throwing exception.
There should be some way to return some error and exit the build.
Also throwing exceptions does not seem good.
Regards,
Satyam Garg
Description
I have written a script under "Misc->Execute Script".
After sync the code from perforce the script executes and validated some input given by user.
Problem is if validation fails script will terminate and next step executes.
To mark the build fail I have to throw a execption. Eg: ( throw new QuickbuildException ).
Due to this a lots of logs gets printed and user is not able to make out the exact error.
Looking at the log user thinks it is some environment issue as they do not know we are explicitly throwing exception.
There should be some way to return some error and exit the build.
Also throwing exceptions does not seem good.
Regards,
Satyam Garg