Sorry, one typo in my email, it should be
${BUILD_LOG_REGEX(matchedLineHtmlStyle: true)}. matchedLineHtmlStyle is not
a boolean though, so I'm not sure why you are using "true" as the value.On Wed, Jul 17, 2013 at 8:55 AM, Slide <[email protected]> wrote: > When using macros in a groovy template, you need to use > ${BUILD_LOG_REGEX(matchedLineHtmlStyle=true)} and ${FAILED_TESTS()}. Please > give that a try. I should also be releasing a new version of email-ext > soon, just have some final testing to do. > > > On Wed, Jul 17, 2013 at 8:45 AM, Michael Bukosky <[email protected]>wrote: > >> Hi, >> >> I am currently trying to write a custom build/failure email for the >> Jenkins - Email-ext plugin. I decided to write the email as a groovy >> template because of the useful 'Email Template Testing' feature in >> Email-ext. I would like to use a combination of groovy script and the built >> in Token Macros. I am having a difficult time trying to figure out if I am >> doing this incorrectly or if it simply is not supported. Here is a simple >> code snippet >> >> ... <truncated> >> >> >>> <dt><font color="#FFFFFF" face="Calibri,Arial" >>> size="2"><strong>Cause</strong></font></dt> >>> <dd><font color="#141414" face="Calibri,Arial" >>> size="2">${build.causes}</font></dd> >>> >>> <dt><font color="#FFFFFF" face="Calibri,Arial" size="2"><strong>Build >>> log extract</strong></font></dt> >>> <dd><font color="#141414" face="Calibri,Arial" >>> size="2">${BUILD_LOG_REGEX, matchedLineHtmlStyle=true}</font></dd> >> >> >>> <dt><font color="#FFFFFF" face="Calibri,Arial" size="2"><strong>Failed >>> Tests</strong></font></dt> >> >> <dd><font color="#141414" face="Calibri,Arial" >>> size="2">${FAILED_TESTS}</font></dd> >> >> >>> ...<truncated> >> >> >> After much goggling, I found a few links that support my theory that >> these features are not supported yet. >> >> Token Macro - >> https://github.com/jenkinsci/token-macro-plugin/commit/d3995df361ab9a3aed09f57da0cb6d0fdc67cbfb >> Token Macros via groovy (2.30.3-SNAPSHOT) - >> https://github.com/jenkinsci/email-ext-plugin/commit/f168dd561922254652f78f254b1bdfb8152860a8 >> >> If this is truly the case, I was wondering if it would be possible to use >> and test the snapshop release. I am a newer user to Jenkins and have not >> used a snapshot before. Does anyone know how to pull the (2.30.3-SNAPSHOT) >> and use it in my local Jenkins? >> >> Thanks for all your help. >> >> Mike >> > > > > -- > Website: http://earl-of-code.com > -- Website: http://earl-of-code.com -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
