Thanks...I just got this working today and found that it was due to my
environment.  Our Jenkins runs in a Secure Development Environment with no
external access.  Being new to Groovy/Grape/etc. I didn't realized that it
had a default list of repositories it searched when specifying the @Grab
statement and thought it was only trying to check our internal repository
that I specified.

I found that I needed a custom grapeConfig.xml that ONLY had our internal
repository listed and it started working.

Disclaimer:  The use case I'm testing is NOT a "Groovy system script" but a
regular Groovy script.  I was initially going to try to make a system
script so I could interact with the Jenkins job and inject additional
environment variables/parameters, but decided to just to it all in the
Groovy script and it's working great!


On Thu, Aug 27, 2015 at 3:56 PM, Victor Martinez <
[email protected]> wrote:

> AFAIK grab is not supported and you could add those dependencies.(jars) in
> the classpath
>
> Further details:
>
> http://stackoverflow.com/questions/14889948/running-groovy-script-on-jenkins
>
> Cheers
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/9765d6ae-2c14-4d06-9334-ca6827c6ce23%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeff Vincent
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPJK9%3DJ3NHD4ceV0uKXJq_jz6js%3DOHyaO2X%3Dbmu6nHwwVnrPLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to