Re: Email ext to send html body in Pipeline

2016-10-17 Thread Slide
rooturl and build are variables that are put into the binding for the Jelly
and Groovy templating. They can't be used directly.

On Mon, Oct 17, 2016 at 6:34 AM  wrote:

> Hi, Sam I was just wondering if the FILE type could use the token
> replacement like the follwoing:
>
> Jenkins project
>
> into the email body. I tested it on my side just out of curiosity and it
> does not make the token replacement as of writting this.
>
> For those who need it:
> '${JELLY_SCRIPT,template="/tmp/test.jelly"}'  for Jelly template
> or
> '${SCRIPT,template="/tmp/test.template"}'  for groovy template
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/6c33bdf1-5f89-48fe-8fec-64297e85fd65%40googlegroups.com
> 
> .
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcayMP0JEJryEzDEy%2B_2sxR98Z%2B7jnf%3DP_3-XfcM3QrHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email ext to send html body in Pipeline

2016-10-17 Thread jerome
Hi, Sam I was just wondering if the FILE type could use the token 
replacement like the follwoing:

Jenkins project

into the email body. I tested it on my side just out of curiosity and it 
does not make the token replacement as of writting this.

For those who need it:
'${JELLY_SCRIPT,template="/tmp/test.jelly"}'  for Jelly template
or
'${SCRIPT,template="/tmp/test.template"}'  for groovy template

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6c33bdf1-5f89-48fe-8fec-64297e85fd65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email ext to send html body in Pipeline

2016-10-14 Thread Sam K
Hmm, not sure what you're asking...but the FILE,path along with the 
mimeType: 'text/html' does send any html file in the body of the email. 

On Friday, October 14, 2016 at 9:57:15 AM UTC-7, jer...@bodycad.com wrote:
>
> Hi,
>
> I found the Jelly script way of doing it, see my post into this forum. 
> does the  '${FILE,path="/tmp/test.html"}' does the Token replacement? can 
> you use any form of script into it (for loop? jelly? groovy?).
>
> Thanks
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2ca41ff1-b7d1-4d79-8273-41c7977d11a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email ext to send html body in Pipeline

2016-10-14 Thread jerome
Hi,

I found the Jelly script way of doing it, see my post into this forum. does 
the  '${FILE,path="/tmp/test.html"}' does the Token replacement? can you 
use any form of script into it (for loop? jelly? groovy?).

Thanks

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b11ce98d-fb8e-4464-a085-32b3ecada1c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email ext to send html body in Pipeline

2016-10-14 Thread Sreeram Krishna
You are right! It has been added. But when I use the file for the body:, it
was sending me the actual content of the html file as text file.

I was using contentType: 'HTML' after trying to look at the code in github,
but it really needed mimeType to get it working.  I wish there is a way to
mark the threads as 'SOLVED' like on stackoverflow so people can look at
threads with solved answers.

emailext  *mimeType: 'text/html'*, body: '${FILE,path="/tmp/test.html"}',
subject: 'Test', to: 'skris...@ss8.com'

On Thu, Oct 13, 2016 at 7:10 AM, Slide  wrote:

> I believe that was added in 2.50 that was released recently.
>
> On Wed, Oct 12, 2016, 13:57 Sam K  wrote:
>
>> Is there a plan to allow the ${FILE,path="${DIR}/test.html"} option that
>> is already available in the plugin?  That is EXACTLY what most would want I
>> presume.  :)
>>
>>
>> On Tuesday, October 11, 2016 at 11:26:58 AM UTC-7, Sam K wrote:
>>
>> Thanks for bringing this to my attention Mark.  I was not aware of that.
>> The jelly scripts are great which send predefined content.  In my case, I
>> am generating content which I want to send in the body.
>>
>> I am trying to work with mutt email client but having other roadblocks.
>>  :(
>>
>> On Tuesday, October 11, 2016 at 7:24:01 AM UTC-7, Mark Bidewell wrote:
>>
>> Support for templates was added in 2.50 if that helps.
>>
>> On Monday, October 10, 2016 at 1:21:28 AM UTC-4, Sam K wrote:
>>
>> This works for most part.  Except, I have a html formatted file which I
>> would like to send as the body.  Is it possible?  Thanks
>>
>> emailext attachmentsPattern: '*.log, *.html', body: 'BUILD_URL = ' +
>> env.BUILD_URL, subject: 'END Coded Pipeline Build SOURCE - ' + CODE_BRANCH
>> + ' TESTS - ' + TEST_BRANCH, to: MAILING_LIST
>>
>> --
>> 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-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/jenkinsci-users/ba748cfd-f69b-485c-b797-
>> 51572934e22b%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-users/I9c4o4qiE10/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/CAPiUgVeRPtjirXNfbWPCbtP0vu%
> 3Dbmed9PjDVLrjX8ZC7Kw8%2BEA%40mail.gmail.com
> 
> .
>
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAKn1gMv-wY%2B%2BrHnuij%3DKYtbHx6cKRsHy6Rw5qJH%3D8CbN%2Bs%2B7SA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email ext to send html body in Pipeline

2016-10-13 Thread Slide
I believe that was added in 2.50 that was released recently.

On Wed, Oct 12, 2016, 13:57 Sam K  wrote:

> Is there a plan to allow the ${FILE,path="${DIR}/test.html"} option that
> is already available in the plugin?  That is EXACTLY what most would want I
> presume.  :)
>
>
> On Tuesday, October 11, 2016 at 11:26:58 AM UTC-7, Sam K wrote:
>
> Thanks for bringing this to my attention Mark.  I was not aware of that.
> The jelly scripts are great which send predefined content.  In my case, I
> am generating content which I want to send in the body.
>
> I am trying to work with mutt email client but having other roadblocks.  :(
>
> On Tuesday, October 11, 2016 at 7:24:01 AM UTC-7, Mark Bidewell wrote:
>
> Support for templates was added in 2.50 if that helps.
>
> On Monday, October 10, 2016 at 1:21:28 AM UTC-4, Sam K wrote:
>
> This works for most part.  Except, I have a html formatted file which I
> would like to send as the body.  Is it possible?  Thanks
>
> emailext attachmentsPattern: '*.log, *.html', body: 'BUILD_URL = ' +
> env.BUILD_URL, subject: 'END Coded Pipeline Build SOURCE - ' + CODE_BRANCH
> + ' TESTS - ' + TEST_BRANCH, to: MAILING_LIST
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/ba748cfd-f69b-485c-b797-51572934e22b%40googlegroups.com
> 
> .
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeRPtjirXNfbWPCbtP0vu%3Dbmed9PjDVLrjX8ZC7Kw8%2BEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email ext to send html body in Pipeline

2016-10-12 Thread Sam K
Is there a plan to allow the ${FILE,path="${DIR}/test.html"} option that is 
already available in the plugin?  That is EXACTLY what most would want I 
presume.  :) 

On Tuesday, October 11, 2016 at 11:26:58 AM UTC-7, Sam K wrote:
>
> Thanks for bringing this to my attention Mark.  I was not aware of that. 
>  The jelly scripts are great which send predefined content.  In my case, I 
> am generating content which I want to send in the body.  
>
> I am trying to work with mutt email client but having other roadblocks.  :(
>
> On Tuesday, October 11, 2016 at 7:24:01 AM UTC-7, Mark Bidewell wrote:
>>
>> Support for templates was added in 2.50 if that helps.
>>
>> On Monday, October 10, 2016 at 1:21:28 AM UTC-4, Sam K wrote:
>>>
>>> This works for most part.  Except, I have a html formatted file which I 
>>> would like to send as the body.  Is it possible?  Thanks
>>>
>>> emailext attachmentsPattern: '*.log, *.html', body: 'BUILD_URL = ' + 
>>> env.BUILD_URL, subject: 'END Coded Pipeline Build SOURCE - ' + CODE_BRANCH 
>>> + ' TESTS - ' + TEST_BRANCH, to: MAILING_LIST
>>>
>>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ba748cfd-f69b-485c-b797-51572934e22b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email ext to send html body in Pipeline

2016-10-11 Thread Sam K
Thanks for bringing this to my attention Mark.  I was not aware of that. 
 The jelly scripts are great which send predefined content.  In my case, I 
am generating content which I want to send in the body.  

I am trying to work with mutt email client but having other roadblocks.  :(

On Tuesday, October 11, 2016 at 7:24:01 AM UTC-7, Mark Bidewell wrote:
>
> Support for templates was added in 2.50 if that helps.
>
> On Monday, October 10, 2016 at 1:21:28 AM UTC-4, Sam K wrote:
>>
>> This works for most part.  Except, I have a html formatted file which I 
>> would like to send as the body.  Is it possible?  Thanks
>>
>> emailext attachmentsPattern: '*.log, *.html', body: 'BUILD_URL = ' + 
>> env.BUILD_URL, subject: 'END Coded Pipeline Build SOURCE - ' + CODE_BRANCH 
>> + ' TESTS - ' + TEST_BRANCH, to: MAILING_LIST
>>
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a5add025-e0a8-4f7d-9033-deab17eeef6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email ext to send html body in Pipeline

2016-10-11 Thread Mark Bidewell
Support for templates was added in 2.50 if that helps.

On Monday, October 10, 2016 at 1:21:28 AM UTC-4, Sam K wrote:
>
> This works for most part.  Except, I have a html formatted file which I 
> would like to send as the body.  Is it possible?  Thanks
>
> emailext attachmentsPattern: '*.log, *.html', body: 'BUILD_URL = ' + 
> env.BUILD_URL, subject: 'END Coded Pipeline Build SOURCE - ' + CODE_BRANCH 
> + ' TESTS - ' + TEST_BRANCH, to: MAILING_LIST
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b2095917-fc69-44b3-85f4-125c27e503f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.