Re: Jenkins email ext plugin -To Send the file contents as mail
iframe is not working on jelly script. I tried using the following syntax in my jelly file to read the contents of HTML file and send it as email message body but its not working. j:include file=C:/jenkins/jobs/ServiceMavenProject/builds/${build.id}/cucumber-html-reports/feature-overview.html / On Wednesday, 14 November 2012 22:13:00 UTC+5:30, slide wrote: message body MIME-Version: 1.0 Content-Type: multipart/alternative; boundary==_Part_375_26436934.1352907687514 --=_Part_375_26436934.1352907687514 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit You most likely can't send an iframe correctly in an email. I'm guessing most email clients will block that. Sent from my Windows Phone From: hari haran Sent: 11/14/2012 7:41 AM To: jenkins...@googlegroups.com javascript: Subject: Jenkins email ext plugin -To Send the file contents as mail message body Hi All, I added email-ext to my jenkins to send emails about test results . I want to send a html file content as email message body. I tried changing Content Type as HTML (text/html) and i gave an iframe in Default Content field. But its not able to pick the iframe. Here is the code Code Used In Default Content $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS: br /iframe src=http://www.w3schools.com; width=200 height=200pyou should have seen my other page here, but something broke./p/iframe br /Check console output at $BUILD_URL to view the results. br /Failed tests: ${FAILED_TESTS} Please someone tell me how Default Content should be changed so that its able to pick the HTML file contents and display it as message body --=_Part_375_26436934.1352907687514 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable htmlheadmeta content=3Dtext/html; charset=3Dutf-8 http-equiv=3DCont= ent-Type/headbodydivdiv style=3Dfont-family: Calibri,sans-serif; = font-size: 11pt;You most likely can't send an iframe correctly in an emai= l. I'm guessing most email clients will block that.brbrSent from my Win= dows Phonebr/div/divhrspan style=3Dfont-family: Tahoma,sans-serif= ; font-size: 10pt; font-weight: bold;From: /spanspan style=3Dfont-fam= ily: Tahoma,sans-serif; font-size: 10pt;hari haran/spanbrspan style= =3Dfont-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;Se= nt: /spanspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt;= 11/14/2012 7:41 AM/spanbrspan style=3Dfont-family: Tahoma,sans-serif= ; font-size: 10pt; font-weight: bold;To: /spanspan style=3Dfont-famil= y: Tahoma,sans-serif; font-size: 10pt;jenkins...@googlegroups.comjavascript:/s= panbrspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt; fon= t-weight: bold;Subject: /spanspan style=3Dfont-family: Tahoma,sans-se= rif; font-size: 10pt;Jenkins email ext plugin -To Send the file contents = as mail message body/spanbrbr/body/htmlHi All,brbrI added ema= il-ext to my jenkins to send emails about test results . I want to send a h= tml file content as email message body.brbrI tried changing Content Ty= pe as HTML (text/html) and i gave an iframe in Default Content field. = But its not able to pick the iframe. Here is the codebrbrCode Used In = Default Contentbrbr$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STAT= US:brbrlt;br /gt;lt;iframe src=3Dhttp://www.w3schools.com; width=3D= 200 height=3D200gt;lt;pgt;you should have seen my other page here, b= ut something broke.lt;/pgt;lt;/iframegt;brbrlt;br /gt;Check conso= le output at $BUILD_URL to view the results.brbrlt;br /gt;Failed test= s: ${FAILED_TESTS}brbrPlease someonenbsp; tell me how Default Content= should be changed so that its able to picknbsp; the HTML file contents a= nd display it as message bodybr --=_Part_375_26436934.1352907687514--
Re: Jenkins email ext plugin -To Send the file contents as mail
I don't think any respectable email client would allow you to include an iframe in an email. It's too much of a security risk. On Mon, Nov 19, 2012 at 10:18 AM, hari haran hari.srik...@gmail.com wrote: iframe is not working on jelly script. I tried using the following syntax in my jelly file to read the contents of HTML file and send it as email message body but its not working. j:include file=C:/jenkins/jobs/ServiceMavenProject/builds/${build.id}/cucumber-html-reports/feature-overview.html / On Wednesday, 14 November 2012 22:13:00 UTC+5:30, slide wrote: message body MIME-Version: 1.0 Content-Type: multipart/alternative; boundary==_Part_**375_26436934.1352907687514 --=_Part_375_26436934.**1352907687514 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit You most likely can't send an iframe correctly in an email. I'm guessing most email clients will block that. Sent from my Windows Phone From: hari haran Sent: 11/14/2012 7:41 AM To: jenkins...@googlegroups.**com Subject: Jenkins email ext plugin -To Send the file contents as mail message body Hi All, I added email-ext to my jenkins to send emails about test results . I want to send a html file content as email message body. I tried changing Content Type as HTML (text/html) and i gave an iframe in Default Content field. But its not able to pick the iframe. Here is the code Code Used In Default Content $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS: br /iframe src=http://www.w3schools.com; width=200 height=200pyou should have seen my other page here, but something broke./p/iframe br /Check console output at $BUILD_URL to view the results. br /Failed tests: ${FAILED_TESTS} Please someone tell me how Default Content should be changed so that its able to pick the HTML file contents and display it as message body --=_Part_375_26436934.**1352907687514 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable htmlheadmeta content=3Dtext/html; charset=3Dutf-8 http-equiv=3DCont= ent-Type/headbodydiv**div style=3Dfont-family: Calibri,sans-serif; = font-size: 11pt;You most likely can't send an iframe correctly in an emai= l. I'm guessing most email clients will block that.brbrSent from my Win= dows Phonebr/div/divhrspan style=3Dfont-family: Tahoma,sans-serif= ; font-size: 10pt; font-weight: bold;From: /spanspan style=3Dfont-fam= ily: Tahoma,sans-serif; font-size: 10pt;hari haran/spanbrspan style= =3Dfont-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;Se= nt: /spanspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt;= 11/14/2012 7:41 AM/spanbrspan style=3Dfont-family: Tahoma,sans-serif= ; font-size: 10pt; font-weight: bold;To: /spanspan style=3Dfont-famil= y: Tahoma,sans-serif; font-size: 10pt;jenkins...@**googlegroups.com/s= panbrspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt; fon= t-weight: bold;Subject: /spanspan style=3Dfont-family: Tahoma,sans-se= rif; font-size: 10pt;Jenkins email ext plugin -To Send the file contents = as mail message body/spanbrbr/body/**htmlHi All,brbrI added ema= il-ext to my jenkins to send emails about test results . I want to send a h= tml file content as email message body.brbrI tried changing Content Ty= pe as HTML (text/html) and i gave an iframe in Default Content field. = But its not able to pick the iframe. Here is the codebrbrCode Used In = Default Contentbrbr$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STAT= US:brbrlt;br /gt;lt;iframe src=3Dhttp://www.w3schools.**comhttp://www.w3schools.com width=3D= 200 height=3D200gt;lt;pgt;you should have seen my other page here, b= ut something broke.lt;/pgt;lt;/iframe**gt;brbrlt;br /gt;Check conso= le output at $BUILD_URL to view the results.brbrlt;br /gt;Failed test= s: ${FAILED_TESTS}brbrPlease someonenbsp; tell me how Default Content= should be changed so that its able to picknbsp; the HTML file contents a= nd display it as message bodybr --=_Part_375_26436934.**1352907687514-- -- Website: http://earl-of-code.com
RE: Jenkins email ext plugin -To Send the file contents as mail
message body MIME-Version: 1.0 Content-Type: multipart/alternative; boundary==_Part_375_26436934.1352907687514 --=_Part_375_26436934.1352907687514 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit You most likely can't send an iframe correctly in an email. I'm guessing most email clients will block that. Sent from my Windows Phone From: hari haran Sent: 11/14/2012 7:41 AM To: jenkinsci-users@googlegroups.com Subject: Jenkins email ext plugin -To Send the file contents as mail message body Hi All, I added email-ext to my jenkins to send emails about test results . I want to send a html file content as email message body. I tried changing Content Type as HTML (text/html) and i gave an iframe in Default Content field. But its not able to pick the iframe. Here is the code Code Used In Default Content $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS: br /iframe src=http://www.w3schools.com; width=200 height=200pyou should have seen my other page here, but something broke./p/iframe br /Check console output at $BUILD_URL to view the results. br /Failed tests: ${FAILED_TESTS} Please someone tell me how Default Content should be changed so that its able to pick the HTML file contents and display it as message body --=_Part_375_26436934.1352907687514 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable htmlheadmeta content=3Dtext/html; charset=3Dutf-8 http-equiv=3DCont= ent-Type/headbodydivdiv style=3Dfont-family: Calibri,sans-serif; = font-size: 11pt;You most likely can't send an iframe correctly in an emai= l. I'm guessing most email clients will block that.brbrSent from my Win= dows Phonebr/div/divhrspan style=3Dfont-family: Tahoma,sans-serif= ; font-size: 10pt; font-weight: bold;From: /spanspan style=3Dfont-fam= ily: Tahoma,sans-serif; font-size: 10pt;hari haran/spanbrspan style= =3Dfont-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;Se= nt: /spanspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt;= 11/14/2012 7:41 AM/spanbrspan style=3Dfont-family: Tahoma,sans-serif= ; font-size: 10pt; font-weight: bold;To: /spanspan style=3Dfont-famil= y: Tahoma,sans-serif; font-size: 10pt;jenkinsci-users@googlegroups.com/s= panbrspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt; fon= t-weight: bold;Subject: /spanspan style=3Dfont-family: Tahoma,sans-se= rif; font-size: 10pt;Jenkins email ext plugin -To Send the file contents = as mail message body/spanbrbr/body/htmlHi All,brbrI added ema= il-ext to my jenkins to send emails about test results . I want to send a h= tml file content as email message body.brbrI tried changing Content Ty= pe as HTML (text/html) and i gave an iframe in Default Content field. = But its not able to pick the iframe. Here is the codebrbrCode Used In = Default Contentbrbr$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STAT= US:brbrlt;br /gt;lt;iframe src=3Dhttp://www.w3schools.com; width=3D= 200 height=3D200gt;lt;pgt;you should have seen my other page here, b= ut something broke.lt;/pgt;lt;/iframegt;brbrlt;br /gt;Check conso= le output at $BUILD_URL to view the results.brbrlt;br /gt;Failed test= s: ${FAILED_TESTS}brbrPlease someonenbsp; tell me how Default Content= should be changed so that its able to picknbsp; the HTML file contents a= nd display it as message bodybr --=_Part_375_26436934.1352907687514--
Re: Jenkins email ext plugin -To Send the file contents as mail
I think that the iframe would work in a jelly script/ There should be enough documentation in the Email Ext plugin's TWIKI page about jelly scripts. My quick summary of what could be done: 1. Create the subdir $JENKINS_HOME/email-templates 2. In that subdir create a file called test.jelly. Its contents would be something similar to: j:jelly xmlns:j=jelly:core xmlns:st=jelly:stapler xmlns:d=jelly:define STYLE BODY, TABLE, TD, TH, P { font-family:Verdana,Helvetica,sans serif; font-size:11px; color:black; } h1 { color:black; } h2 { color:black; } h3 { color:black; } TD.bg1 { color:white; background-color:#C0; font-size:120% } TD.bg2 { color:white; background-color:#4040FF; font-size:110% } TD.bg3 { color:white; background-color:#8080FF; } TD.test_passed { color:blue; } TD.test_failed { color:red; } TD.console { font-family:Courier New; } /STYLE BODY j:set var=spc value=amp;nbsp;amp;nbsp; / !-- GENERAL INFO -- $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS: br /iframe src=http://www.w3schools.com; width=200 height=200pyou should have seen my other page here, but something broke./p/iframe br /Check console output at $BUILD_URL to view the results. br /Failed tests: ${FAILED_TESTS} !-- here is some extra stuff that could be used -- TABLE TRTD align=right j:choose j:when test=${build.result=='SUCCESS'} IMG SRC=${rooturl}static/e59dfe28/images/32x32/blue.gif / /j:when j:when test=${build.result=='FAILURE'} IMG SRC=${rooturl}static/e59dfe28/images/32x32/red.gif / /j:when j:otherwise IMG SRC=${rooturl}static/e59dfe28/images/32x32/yellow.gif / /j:otherwise /j:choose /TDTD valign=centerB style=font-size: 200%;BUILD ${build.result}/B/TD/TR TRTDBuild URL/TDTDA href=${rooturl}${build.url}${rooturl}${build.url}/A/TD/TR TRTDProject:/TDTD${project.name}/TD/TR TRTDDate of build:/TDTD${it.timestampString}/TD/TR TRTDBuild duration:/TDTD${build.durationString}/TD/TR /TABLE BR/ /BODY /j:jelly 3. In the JOB, add the following line in the email's DEFAULT_CONTENT to parse/use the jelly file: ${JELLY_SCRIPT,template=test} I hope that this may help, Mgimza On Wed, Nov 14, 2012 at 11:42 AM, Alex Earl slide.o@gmail.com wrote: message body MIME-Version: 1.0 Content-Type: multipart/alternative; boundary==_Part_375_26436934.1352907687514 --=_Part_375_26436934.1352907687514 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit You most likely can't send an iframe correctly in an email. I'm guessing most email clients will block that. Sent from my Windows Phone From: hari haran Sent: 11/14/2012 7:41 AM To: jenkinsci-users@googlegroups.com Subject: Jenkins email ext plugin -To Send the file contents as mail message body Hi All, I added email-ext to my jenkins to send emails about test results . I want to send a html file content as email message body. I tried changing Content Type as HTML (text/html) and i gave an iframe in Default Content field. But its not able to pick the iframe. Here is the code Code Used In Default Content $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS: br /iframe src=http://www.w3schools.com; width=200 height=200pyou should have seen my other page here, but something broke./p/iframe br /Check console output at $BUILD_URL to view the results. br /Failed tests: ${FAILED_TESTS} Please someone tell me how Default Content should be changed so that its able to pick the HTML file contents and display it as message body --=_Part_375_26436934.1352907687514 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable htmlheadmeta content=3Dtext/html; charset=3Dutf-8 http-equiv=3DCont= ent-Type/headbodydivdiv style=3Dfont-family: Calibri,sans-serif; = font-size: 11pt;You most likely can't send an iframe correctly in an emai= l. I'm guessing most email clients will block that.brbrSent from my Win= dows Phonebr/div/divhrspan style=3Dfont-family: Tahoma,sans-serif= ; font-size: 10pt; font-weight: bold;From: /spanspan style=3Dfont-fam= ily: Tahoma,sans-serif; font-size: 10pt;hari haran/spanbrspan style= =3Dfont-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;Se= nt: /spanspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt;= 11/14/2012 7:41 AM/spanbrspan style=3Dfont-family: Tahoma,sans-serif= ; font-size: 10pt; font-weight: bold;To: /spanspan style=3Dfont-famil= y: Tahoma,sans-serif; font-size: 10pt;jenkinsci-users@googlegroups.com /s= panbrspan style=3Dfont-family: Tahoma,sans-serif; font-size: 10pt; fon= t-weight: bold;Subject: /spanspan style=3Dfont-family: Tahoma,sans-se= rif; font-size: 10pt;Jenkins email ext plugin -To Send