Can you explain further what you mean when you say that the file was formatted with UTF-8?
As an example, I have a scripted Pipeline Jenkinsfile <https://github.com/MarkEWaite/jenkins-bugs/blob/JENKINS-6203/Jenkinsfile> which includes Japanese characters and is well-behaved. I am reasonably certain that it is UTF-8. I have a declarative Jenkinsfile <https://github.com/MarkEWaite/jenkins-bugs/blob/JENKINS-52844/Jenkinsfile> which also includes Japanese characters and is well-behaved. Does the file you are editing use a byte-order mark to indicate that it is UTF-8? Is there some other technique that indicates it is a UTF-8 file? If you can provide steps to duplicate the problem, feel free to upload those steps to JENKINS-52844, or to create a new bug report if you believe that the bug you're seeing does not match JENKINS-52844. Mark Waite On Tue, Aug 21, 2018 at 2:33 PM Pablo Gandulfo <pabgandu...@gmail.com> wrote: > 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 > <https://groups.google.com/d/msgid/jenkinsci-users/0d435cdd-0669-4ed5-9142-bb58730bece6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAO49JtENsx1iQLJ7kT01SAr-XQO9S7nkMd-Y7u0OirdqUtOXUw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.