-
Type:
Bug
-
Resolution: Not A Defect
-
Priority:
Major
-
Component/s: pipeline, workflow-job-plugin
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
-