<< Back to previous view |
[QB-2699] Logger and exceptions not available on check-build-condition
|
|
Status: | Closed |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | 6.1.3 |
Fix Version/s: | None |
Type: | Bug | Priority: | Major |
Reporter: | Dror Sh. | Assigned To: | Robin Shen |
Resolution: | Fixed | Votes: | 0 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown | ||
Environment: | Solaris |
Description |
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? |
Comments |
Comment by 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"); |