I got this error and invested a considerable amount of time to solve it, searching on internet and trying different approaches, all of them with no success. Finally, I found the cause and solve it. So, I would like to share this knowledge and I hope that someone at Jenkins Developer Team document this to avoid others facing the same problem.
The cause was that the Jenkinsfile was formatted with UTF-8. That's it! Firstly I was using it in ANSI, but some latin characters were appearing wrongly in the log. So I changed to UTF-8 and, suddenly, every first work I used in the script file (pipeline, node, def, etc.) didn't work anymore, throwing the same error: "java.lang.NoSuchMethodError: No such DSL method 'XXXXX' found among steps". I imagine that this may be the cause of JENKINS-52844 , which was opened recently. So, Andrew Bayer (@abayer), I hope you see this message too. Regards, Pablo. -- 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/0d435cdd-0669-4ed5-9142-bb58730bece6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.