[JIRA] (JENKINS-18349) Allow to use @Grab in a Script Console

4 views
Skip to first unread message

jglick@cloudbees.com (JIRA)

unread,
Aug 19, 2016, 1:30:02 PM8/19/16
to jenkinsc...@googlegroups.com
Jesse Glick commented on New Feature JENKINS-18349
 
Re: Allow to use @Grab in a Script Console

Would be wiser to do JENKINS-29068 first.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

jglick@cloudbees.com (JIRA)

unread,
Aug 22, 2016, 3:24:01 PM8/22/16
to jenkinsc...@googlegroups.com

Not a long-term solution, but I found a way in JENKINS-26192 to make it work in Pipeline global libraries which as a side effect makes it work throughout Jenkins (unless I go to special effort to suppress that).

lvotypko@redhat.com (JIRA)

unread,
Jul 24, 2019, 9:11:04 AM7/24/19
to jenkinsc...@googlegroups.com
Lucie Votypkova assigned an issue to vjuranek
 
Jenkins / New Feature JENKINS-18349
Change By: Lucie Votypkova
Assignee: Lucie Votypkova vjuranek
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jglick@cloudbees.com (JIRA)

unread,
Jul 24, 2019, 10:34:07 AM7/24/19
to jenkinsc...@googlegroups.com
 
Re: Allow to use @Grab in a Script Console

The issue here is that while Groovy bundles the Grape system, you need to have Ivy in the classpath for it to actually work. workflow-cps-global-lib bundles Ivy for this reasons, so other components could make use of Grape if they follow that class loader (or UberClassLoader). In JENKINS-26635 I had to add an optional dependency to the groovy plugin.

Reply all
Reply to author
Forward
0 new messages