Hi there,

I don't know what plugin you are using exactly. There are different 
approaches as far as I see:

1) https://wiki.jenkins-ci.org/display/JENKINS/Active+Choices+Plugin plugin 
supports the scriptler plugin, that's another way of centralising those 
scripts.

2) if you are tied to that particular Groovy Choice Parameter then by 
storing those scripts in the master filesystem and

a) using http://groovy.codehaus.org/api/groovy/lang/GroovyShell.html as 
suggested:
- http://stackoverflow.com/questions/9004303/load-script-from-groovy-script
b) using the 'evaluate' method as suggested 
- http://stackoverflow.com/a/9154553


If I recall correctly I used to use the evaluate function a few years ago:
- 
http://docs.groovy-lang.org/2.4.7/html/gapi/groovy/lang/Script.html#evaluate(java.lang.String)

I hope it helps 

-- 
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/6c74f1de-d0f5-42b4-a513-a3a300096147%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to