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.
In our project, we often write Groovy scripts either in Pre-/Post-Execute Action or in separate step Execute script.
Something like this script - https://support.pmease.com/PMEase/QuickBuild-Scripts-Plugins/topics/3328/groovy-script-to-get-names-of-all-steps-in-a-configuration?5
The scripts can be quite long. Is there a possibility to store such a script in a .groovy file and then refer to this file in the script field?
Thanks in advance for any suggestions/ideas
You may read the file to a string with groovy, and call groovy's eval to evaluate the string. You may pass in some QB objects as eval context (such as system, build, etc) if necessary
Thanks a lot. This worked. In case someone is interested, here is a simple example:
def sharedData = new Binding()
def shell = new GroovyShell(sharedData)
And here is the content of simpleScript.groovy
Thanks for sharing. In QB9 we will be adding a separate step to execute script in a file.
Decent need to accomplish something like this with mine