[JIRA] (JENKINS-58792) @grab no longer works in jenkins v2.176.2

0 views
Skip to first unread message

nitin.cool4urchat@gmail.com (JIRA)

unread,
Aug 2, 2019, 3:43:02 PM8/2/19
to jenkinsc...@googlegroups.com
Nitin Surana created an issue
 
Jenkins / Bug JENKINS-58792
@grab no longer works in jenkins v2.176.2
Issue Type: Bug Bug
Assignee: Unassigned
Components: pipeline, workflow-job-plugin
Created: 2019-08-02 19:42
Priority: Major Major
Reporter: Nitin Surana

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

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

nitin.cool4urchat@gmail.com (JIRA)

unread,
Aug 2, 2019, 3:45:02 PM8/2/19
to jenkinsc...@googlegroups.com
Nitin Surana updated an issue
Change By: Nitin Surana
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

 
{code:java}
@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 {...}
}

{code}
 

nitin.cool4urchat@gmail.com (JIRA)

unread,
Aug 2, 2019, 5:40:02 PM8/2/19
to jenkinsc...@googlegroups.com

nitin.cool4urchat@gmail.com (JIRA)

unread,
Aug 2, 2019, 5:41:08 PM8/2/19
to jenkinsc...@googlegroups.com
Nitin Surana edited a comment on Bug JENKINS-58792
Duplicate of https://issues.jenkins-ci.org/browse/JENKINS-41122

In the new jenkins, instead of creating pipelines libraries globally, I created pipeline library for a specific multi-branch project.

nitin.cool4urchat@gmail.com (JIRA)

unread,
Aug 2, 2019, 5:41:20 PM8/2/19
to jenkinsc...@googlegroups.com
Change By: Nitin Surana
Status: Open Fixed but Unreleased
Assignee: Nitin Surana
Resolution: Not A Defect

nitin.cool4urchat@gmail.com (JIRA)

unread,
Aug 2, 2019, 5:42:03 PM8/2/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages