Hi orctom,
Thanks much for helping me on this
I am trying to run the below code
-------------------------------------------------------
import groovyx.net.http.HTTPBuilder
import groovyx.net.http.ContentType
import groovyx.net.http.Method
import groovyx.net.http.RESTClient
def client = new RESTClient( 'http://localhost' )
println client
-----------------------------------------------------
I have added all required JAR files under $JENKINS_HOME/global-post-script/lib
But when i run the above script trough the plugin i am getting [ERROR] Failed to execute: posthook.groovy, org/apache/http/client/methods/HttpRequestBase error .
At the same time when i have all these jars added to the .groovy directory under my home directory and tried to run the script manually (running groovy scriptfile.groovy command) its getting executed with the expected result
If you are running your Jenkins in Tomcat, you can place the 3rd party libs into the WEB-INF/lib folder.
If not... I guess I could add a input box to let you input a folder where you could place the 3rd-party libs.