Have you tried with double quote multistring and also the $ variable?
node {
FROM = 'AAA <[email protected]>'
emailext(
to: "[email protected]",
presendScript: """msg.setHeader("From", ${FROM});""",
subject: "test",
mimeType: 'text/html',
body: "content"
)
}
--
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/fadee596-83ba-44f4-a2a9-181ce983e56c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.