<< Back to previous view

[QB-1352] To exit Misc->Execute Script and makethe build fail
Created: 27/Aug/12  Updated: 28/Aug/12

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: 4.0.20
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Satyam Garg Assigned To: Robin Shen
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: Ubuntu


 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

 Comments   
Comment by Robin Shen [ 28/Aug/12 12:01 AM ]
Please upgrade to latest QB version, and upon throwing a QuickbuildException, this version will display the error message enclosed by QuickbuildException directly at build page, instead of displaying a stack trace.
Generated at Thu May 16 04:45:13 UTC 2024 using JIRA 189.