History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-1352
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Robin Shen
Reporter: Satyam Garg
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

To exit Misc->Execute Script and makethe build fail

Created: 27/Aug/12 06:03 AM   Updated: 28/Aug/12 12:01 AM
Component/s: None
Affects Version/s: 4.0.20
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Ubuntu


 Description  « Hide
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

 All   Comments   Work Log   Change History      Sort Order:
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.