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?
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?
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");
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");
To report errors, just throw an exception like below:
throw new QuickbuildException("Some errors");