Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

How to debug groovy scripts inside QB #1973

arkady.itkin ·
I'm trying to debug some groovy script in Quickbuild.
I found out that I can print debug information to the build log by using following code:
${groovy:  
import com.pmease.quickbuild.Context;
.....
Context.getLogger().info("Some texts here...");
}


but it works only when script is executed in the step.

Is there any way to print out to the log (or any other place) from withing promotion code, from post-build code and from other places?
Any other way to debug groovy scripts?
  • replies 3
  • views 3405
  • stars 0
robinshen ADMIN ·
Logging information printed in groovy can be found in build log if it is executed while a build is running, and can be found in console log if build is not running. A simpler approach is to use "logger" object directly, it has the same value as Context.getLogger().
arkady.itkin ·
Thanks, Robin.
Where can I find "Console log"? Is that the same as "System log"?
robinshen ADMIN ·
Yes this info can also be found in system log.