System groovy build step with support for external libraries via grab

12 views
Skip to first unread message

Krunal Patel

unread,
Jun 26, 2016, 12:33:59 AM6/26/16
to Jenkins Users
hi.  Looking for some help regarding running build step "Run system groovy script".  I want the best of both worlds: get access to Jenkins JVM and all it's objects like "build" but also be able to Grab dependencies.  Whenever I try this, I get back "java.lang.NoClassDefFoundError: org/apache/ivy/Ivy at java.lang.Class.getDeclaredMethods0(Native Method)"

I've googled this extensively but havne't found a solid answer.  
 

I would hate to have to combine System groovy with non-system groovy build steps and transver data via properties.  I want to do it all in a single groovy script.  Is there a way on latest Jenkins to do so?


Reply all
Reply to author
Forward
0 new messages