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 [email protected] with address [email protected] 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: [email protected] 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> <http://172.16.2.118:8080/job/RE_TRUNK/88/display/redirect> Please let know. I need to print the last few lines or 250 lines as configured in the email body. On Mon, Feb 25, 2019 at 6:12 PM Slide <[email protected]> wrote: > BUILD_LOG requires values for the parameters that you have specified. > ${BUILD_LOG, maxLines=250, escapeHtml=true}/ > > On Mon, Feb 25, 2019 at 5:16 AM <[email protected]> wrote: > >> 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 >> >> >> -- >> 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/3e329321-a20a-4b6c-8107-e85a24377087%40googlegroups.com >> <https://groups.google.com/d/msgid/jenkinsci-users/3e329321-a20a-4b6c-8107-e85a24377087%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdJ60p7PbM-inK%2BxuR5Pc23DqZO0OZDphbKCnacrSYWcA%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdJ60p7PbM-inK%2BxuR5Pc23DqZO0OZDphbKCnacrSYWcA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAC3KZS9u%2B4JQ1rChUAbqoQgkDx2grawSpNvDdJ0U%3D6gXR2jUXw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
