Issue with using ${BUILD_LOG_EXCERPT}

632 views
Skip to first unread message

rquitania

unread,
Apr 17, 2015, 12:54:31 PM4/17/15
to jenkins...@googlegroups.com
Jenkins ver: 1.580.1-SNAPSHOT
Email-ext plugin ver: 2.38.2

I am trying to use the ${BUILD_LOG_EXCERPT} token in the email-ext but it does not seem to work for me. 

Here is my code: 
${BUILD_LOG_EXCEPRT, start="^.*?Log:.*?$", end="^.*?Error code:.*?$"}

What am I doing wrong?

Christopher Orr

unread,
Apr 17, 2015, 1:08:36 PM4/17/15
to jenkins...@googlegroups.com
Two problems I can see:

1. You have not defined what "does not seem to work" means. You get no
log output in your emails? You get unexpected output? Jenkins shows an
error message when sending the email? etc...

2. Your example code misspells "BUILD_LOG_EXCERPT".

As you're apparently using an old version of email-ext, and a modified
(SNAPSHOT) version of Jenkins, you could also try upgrading, and using
an official Jenkins release.

-Chris

rqui

unread,
Apr 17, 2015, 1:18:36 PM4/17/15
to jenkins...@googlegroups.com
Sorry. 

1. The token doesn't get expanded in the actual email; it just displays the code as I have it in the job.

2. Sorry that's a typo on my part, its spelled correctly in my job.

Do you really think its a "version" issue with the plugin and Jenkins?

rqui

unread,
Apr 17, 2015, 3:21:57 PM4/17/15
to jenkins...@googlegroups.com
Nevermind. It's fixed. :-). I just made sure the regex was correct and there were no typos. Thanks.
Reply all
Reply to author
Forward
0 new messages