-
Bug
-
Resolution: Not A Defect
-
Major
-
None
I had a jenkinsfile pipeline that run successfully in v2.89.4
But the same pipeline throws the following error in v2.176.2
java.lang.RuntimeException: No suitable ClassLoader found for grab
My jenkinsfile looks like
@Grab('org.codehaus.groovy.modules.http-builder:http-builder:0.5.0-RC2') import groovy.json.JsonOutput import groovyx.net.http.RESTClient import static groovyx.net.http.ContentType.JSON import groovy.json.JsonSlurper import groovy.io.FileType def call(body) { pipelineConfig = [:] body.resolveStrategy = Closure.DELEGATE_FIRST body.delegate = pipelineConfig pipeline {...} }
- duplicates
-
JENKINS-41122 @Grab does not work when libraries are scoped to folders
- Resolved