If you are including this in a pipeline script, you need to make sure and use single quotes or escape the $. Groovy will try and evaluate that if you use double quotes.
On Wed, Feb 1, 2017 at 9:20 AM Ghazi TRIKI <ghazi.noctu...@gmail.com> wrote: > Hello, > > I am helping Siva on a Jenkins build task. We wrote a pipeline email > function that get log and puts it to email. The issue we have is that we > tried using BUILD_LOG_EXCERPT and BUILD_LOG variables but get the following > exception. Can you help us please? > > org.codehaus.groovy.control.MultipleCompilationErrorsException: startup > failed: > WorkflowScript: 17: unexpected token: BUILD_LOG_EXCERPT @ line 17, column > 11. > <pre>${BUILD_LOG_EXCERPT, start="^Hello World", end="^Finished: > SUCCESS"}</pre>""", > > -- > 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/aa987e90-2a58-4909-88fc-2773f666d0a2%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/aa987e90-2a58-4909-88fc-2773f666d0a2%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/CAPiUgVdDS2kNudwYnCQZivO03V1hc15qYfD88VxtpHcRZZLx4g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.