Is there any way to make eclipse run Groovy with the same limiyations as the Pipeline Plugin?

17 views
Skip to first unread message

Jonathan Hodgson

unread,
Oct 14, 2016, 6:16:01 AM10/14/16
to Jenkins Users
Hi,

Testing out new Groovy code inside Jenkins is slow and painful. Whereas I can run a bit of code in a second on my local system inside Eclipse, it can be minutes on Jenkins (because it is part of a build), even if I strip everything out that I possibly can it's at least an order of magnitude greater. As a newbie to Groovy it can take me a number of iterattions to get things right (especially given the issue I'll talk abiout next), so being able to test code on my local machine would be MUCH better.

Unfortunately, Groovy in the pipeline is a bit broken, 


There are workarounds, but if the problems only happen inside the pipeline, that that a lot of the development/debug iterations have to happen on the server.

Things would progress much faster if I had a local implementation of Groovy that aped the one in the pipeline

Mark Waite

unread,
Oct 14, 2016, 7:25:34 AM10/14/16
to Jenkins Users

I don't know of a way to make eclipse run the same groovy as Jenkins, but the "Replay" button in Jenkins has made my debugging much faster. I can remove build stages and change arguments for faster iteration on experiments.

Mark Waite


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3f495101-b785-4549-8885-2c282e464c18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages