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

Key: QB-2699
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Robin Shen
Reporter: Dror Sh.
Votes: 0
Watchers: 0
Operations

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

Logger and exceptions not available on check-build-condition

Created: 19/Apr/16 05:52 AM   Updated: 20/Apr/16 12:50 AM
Component/s: None
Affects Version/s: 6.1.3
Fix Version/s: None

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


 Description  « Hide
While evaluating the "Build Condition", to see "If changes found in referenced repositories" I'm trying to log information, and raise an exception if something is wrong.
Is it possible? How?

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [20/Apr/16 12:50 AM]
To log information, just call logger.info("something to log"); (or logger.warn, logger.error, logger.debug ...) Log information will be written to server log or agent log depending on where you are running master step of the build.

To report errors, just throw an exception like below:
throw new QuickbuildException("Some errors");