What exactly are you trying to achieve? And where do you run groovy script 
using your Test class?

In general, compiles Test class need to be in groovy class path.
Usually it's -cp option when running from command line, in Jenkins Groovy 
plugin there's special column in Advanced options to set up class path

> So I am new to Java, Groovy and Jenkins . . .
> 
> 
> 
> I have a simple test class working:
> 
> 
> 
> class Test {
> 
>   public String MyString() { return "This is my String"; }
> 
> }
> 
> 
> 
> I can compile it and call it from Java . . .
> 
> 
> 
> class HelloWorldApp {
> 
>   public static void main(String[] args) {
> 
>     System.out.println("Hello World!"); // Display the string.
> 
>     Test t = new Test();
> 
>     System.out.println(t.MyString());
> 
>   }
> 
> }
> 
> 
> 
> The question is, how do I do that from Groovy and Jenkins?
> 
> 
> 
> Is there a magic directory this has to be put into or a way to change
> CLASSPATH (I've seen postings implying CLASSPATH isn't honored by Jenkins).
> 
> 
> 
> I get that I need to import it . . . but where do I need to put it or how
> do I configure Groovy so it knows where I put it?
> 
> 
> 
> Frank

Reply via email to