My apologies,
I wasn't trying to be vague. I thought it would be easier if I set my goal to be running any of the sample scripts listed on the groovy sample script page. I am actually able to run groovy code on the slave. I'm actually trying to use the scriptlet plugin so that I can store the groovy script on the master and have it copy to the slave and execute at run time. From what I'm reading that's one of the benefits of using the scriptlet plug-in apparently: storage of the groovy scripts on the master, without the need to copy it to the slave at execution time.
To your point, I haven't really been that clear.
I have a scriptler script saved on the master called "test". It contains this one line:
println System.getenv("PATH")
When I run this from the Scriptler console interface against the master it works fine and prints the contents of the PATH environment variable.
However, when I attempt to run it against a slave I get the same error I reported in my last post.
I also get the same error when I "execute a scriptlet" as a build step and execute it on a slave. Again, works fine if I point it to the master.
I've even tried replacing my one line of code with :
prinln "hello world"
and get the same error! If I can't do a simple print statement I must be doing something very basic incorrectly with my environment.
I'm guessing my issue with executing groovy on the slave is specific to the scriplter plugin. I think this because I'm able to execute groovy on the slave if I specify a groovy script as a build step...the only caveat there is that the only groovy I can execute is basic groovy...I'm not able to reference any of the jenkins api's when executing on the slave.
Does that help describe what I'm doing a little better?
Take for instance