Depends on your perspective - what you call limitations I see as a huge benefit. I am doing pretty large projects using Pipelines and it is has been rock solid and reliable. And yes, since Global Libs came around, you CAN run just about any Groovy or Java code you want- though you may not want to, as it does comes at a price (you usually lose one or more of convenience, or security, or ability to resume). Of course if you are transferring this code from existing system, you likely did not have those things in the first place. As such, I would consider any mass migration of code from other projects a major red flag and a security/reliability nightmare. I would always start by questioning if this is even necessary to port it in the first place - perhaps a real build tool would be a better choice. Overall the largest mistake I see people make with Pipelines (and with Jenkins in general) is confuse Jenkins for a build system. It is not. It is a build job orchestration tool, and it orchestrates and executes those complicated things, but you are not meant to do complicated build things with it directly. if you find yourself writing complicated code for that - you are likely doing it very wrong. Nothing like that belongs in Jenkins JVM, not if you want any semblance of stability or security. If you understand that, you can do some majorly advanced things with very little code and if you do not, you end up with a confusing jumbled unstable mess. Thats just my option, I recognize that not everyone may share it, but it works for me.
-M On Monday, November 7, 2016 at 2:41:43 PM UTC-8, Sean McNamara wrote: > > The big limitation of Pipelines is that Pipelines' Groovy code isn't > actually Groovy. It's a small-ish subset of Groovy that breaks in ways > that aren't extremely well-documented. You can't just import any > arbitrary Groovy code and expect it to work. A lot of folks who are > currently using the Groovy plugin running system groovy or external > groovy scripts will have to do major rewrites to dumb things down for > the Pipeline plugin. > > Until/unless pipelines support all of Groovy, it's difficult to > recommend for scripts larger than a couple of lines. IMO, anyway. > > Sean > > -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1b9efcf4-9ed1-46df-901f-c9daaf4c5790%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.