customized email body content not working

19 views
Skip to first unread message

tstr...@gmail.com

unread,
Feb 25, 2019, 7:16:41 AM2/25/19
to Jenkins Users
Hi, Using Jenkins 2.153 running on CentOS7.3. I have entered the following conditions on Default Content field on Configure System page as well as project specific post build actions on Email Ext section. I want to display the static content on the received email in a simple way. and for failure build, email notification none is displayed just displays only one URL.
1. ${BUILD_LOG, maxLines, escapeHtml}
2. Check console output at $BUILD_URL to view the results.

Is there any other way to setup or please let know.
Thank you


Slide

unread,
Feb 25, 2019, 7:42:26 AM2/25/19
to Jenkins User Mailing List
BUILD_LOG requires values for the parameters that you have specified. ${BUILD_LOG, maxLines=250, escapeHtml=true}/

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3e329321-a20a-4b6c-8107-e85a24377087%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Turaco mobile

unread,
Feb 25, 2019, 8:39:41 AM2/25/19
to jenkins...@googlegroups.com
Thank you for your response. I have tried but no luck. Below is the console output:
Checking for post-build
Performing post-build step
Checking if email needs to be generated
Email was triggered for: Unstable (Test Failures)
Sending email for trigger: Unstable (Test Failures)
messageContentType = text/plain; charset=UTF-8
Adding gane...@turacomobile.com with address gane...@turacomobile.com
Adding recipients from project recipient list
Adding recipients from trigger recipient list
Setting In-Reply-To since last build was not successful
Successfully created MimeMessage
Sending email to: gane...@turacomobile.com
MessagingException message: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
Finished: UNSTABLE

Email received like this:
Subject: Jenkins build is still unstable: TRUNK #88
Body as below:
See <http://ip:port/job/TRUNK/88/display/redirect>
Please let know. I need to print the last few lines or 250 lines as configured in the email body.

Slide

unread,
Feb 25, 2019, 8:41:01 AM2/25/19
to Jenkins User Mailing List
This is a different issue, you need to verify your SMTP server configuration. 


For more options, visit https://groups.google.com/d/optout.


--
Reply all
Reply to author
Forward
0 new messages