I have been using "Execute Groovy Script". Then it looks like I should be 
using "System Groovy Script" instead. 
Would a groovy script with Scriptler also have access to the Jenkins 
internals?

mandag 23. februar 2015 21.51.29 UTC+1 skrev LesMikesell følgende:
>
> On Mon, Feb 23, 2015 at 9:19 AM, Sverre Moe <[email protected] 
> <javascript:>> wrote: 
> > Found the example on the web. Much of the Groovy examples I have seen 
> > entailed using the Jenkins Remote API. I want to use the Jenkins API, 
> > running the Groovy script inside jenkins. 
> > 
> > Haven't found any example how to get the build process. 
> > def build = jenkins.build (or whatever the access class/method is) 
> > 
> > Where is the starting point using the Jenkins API from a groovy script? 
> > Getting server instance, manager instance, thread... 
>
> Is your build step "execute groovy script" or "execute system groovy 
> script".   The former runs independently in a forked jvm on the node, 
> the latter is the one with access to jenkins internals. 
>
> -- 
>    Les Mikesell 
>      [email protected] <javascript:> 
>

-- 
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/17b7b7f6-03fd-4047-b024-575cbf61126e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to