Hi All,
I am trying to get one line from build logs and sending in email for that i tied to use BUILD_LOG_REGEX in emailext but its throwing me this error
CodCode:
```
{ emailext (
mimeType: 'text/html',
attachLog: true,
subject: "Jenkins Build ${currentBuild.currentResult}: Job ${env.JOB_NAME}",
body: "${BUILD_LOG_REGEX, regex="Check out job at", maxMatches=2, showTruncatedLines=false}",
to: 'jyoti2xx'
```
Error:
6:10:26 org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
16:10:26 WorkflowScript: 38: unexpected token: BUILD_LOG_REGEX @ line 38, column 15.
16:10:26 body: "${BUILD_LOG_REGEX, regex="Check out job at", maxMatches=2, showTruncatedLines=false}",
16:10:26
Any idea how to fix this issue?
Thanks,
Jyoti