Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58792

@grab no longer works in jenkins v2.176.2

XMLWordPrintable

      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 {...}
      }
      
      

       

            nsurana Nitin Surana
            nsurana Nitin Surana
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: