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
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/b64d7b8d-1595-40bd-8096-f88da3e2e81cn%40googlegroups.com.