Dear Jenkins Users, The following command will executes groovy the specified Groovy script on host.
java -jar ~/work/groovy/jenkins-cli.jar -s http://host:port groovy /path/scripts/script1.groovy Is there anyway to use classes defined in script2.groovy in context of script1.groovy executed as system groovy script. The package import seems to not work for my case. The scripts are stored in the same directory: /path/scripts/ Best regards, Tomasz Majchrowski.