You'll want to read up on Jelly and how to interact with the Jenkins
classes to get the information you want and add it to your template. I
would recommend using the groovy templates instead as they make interacting
with Jenkins classes much easier.

slide


On Fri, Jan 11, 2013 at 3:47 AM, uma shankar <prasad.ushan...@gmail.com>wrote:

> Hi Alex,
>
> Thank you very much for suggestion.
>
> I have used ${JELLY_SCRIPT, template="html"} and getting emails in below
> format:
>
> Build URLhttp://localhost:8080/job/test/14/Project: testDate of build:Fri,
> 11 Jan 2013 13:28:40 +0530Build duration:0.37 sec
> *CHANGES*  Revision *9* by *user:**(afsda)*  edit
> //streams/local/test2/test.txt   Revision *8* by *user:**(xzvz)*  edit
> //streams/local/test/test.txt  edit//streams/local/test2/test.txt
>
> I got what was expected, only thing is not getting the each file version.
> and i would also like the build executor name in email.
>
> Could you please help me.
>
>
> On Fri, Jan 11, 2013 at 12:22 AM, Alex Earl <slide.o....@gmail.com> wrote:
>
>> The default groovy template should have the info.
>>
>>
>> Sent from my Windows Phone
>> ------------------------------
>> From: uma shankar
>> Sent: 1/10/2013 11:22 AM
>> To: Alex Earl
>> Cc: jenkinsci-users@googlegroups.com
>> Subject: Re: Issue with Email-Ext plugin-Please help
>>
>>  Hi Alex,
>>
>> I have tried in many ways to get that output, but did not get it through.
>> Will you be able to help me getting the template?
>>
>> Thank You.
>>
>>
>> On Thu, Jan 10, 2013 at 11:34 PM, Alex Earl <slide.o....@gmail.com>wrote:
>>
>>> You may need to create your own template. Look at the wiki for more
>>> information.
>>>
>>> Sent from my Windows Phone
>>> ------------------------------
>>> From: uma shankar
>>> Sent: 1/10/2013 10:53 AM
>>> To: jenkinsci-users@googlegroups.com
>>> Subject: Issue with Email-Ext plugin-Please help
>>>
>>>  Hi,****
>>>
>>> ** **
>>>
>>> I am trying to use Jenkins for POC, and have enabled Email-ext plugin. I
>>> am facing some issue while getting perforce change list.****
>>>
>>> ** **
>>>
>>> I am have been using perforce plugin for integration with SCM. I have
>>> some issue with the plugin.
>>> I use Email-ext plugin and trying get complete change list history in
>>> mail with revision no and workspace as display on build home page.
>>> Example: (*Expected to be in e-mail*)
>>> Changes
>>> 1436416 by umashankar@umashakar-test on Jan 10, 2013 8:44:54 AM
>>> Forcing a build
>>> Affected Files:
>>> //myproject/src/test/java/control.java(#16)****
>>>
>>> //myproject/src/test/java/control1.java(#17)****
>>>
>>> ** **
>>>
>>> ** **
>>>
>>> But I have used some keyword to get this things in email as below:
>>> *************************
>>>
>>> List of changed file(s):
>>> ${CHANGES, showPaths=true}****
>>>
>>> ** **
>>>
>>> ${CHANGES_SINCE_LAST_SUCCESS, showPaths=true}****
>>>
>>> *************************
>>>
>>> ** **
>>>
>>> And output comes in mail as below:
>>> List of changed file(s):
>>> [umashankar] Updates
>>> src/test/java/control.java****
>>>
>>> src/test/java/control1.java****
>>>
>>> ** **
>>>
>>> Changes for Build #16
>>> [umashankar] Updates
>>> src/test/java/control.java****
>>>
>>> src/test/java/control1.java****
>>>
>>> It is missing the full path, revision number, changelist workspace name.
>>> ****
>>>
>>> ** **
>>>
>>> Early response would help to resolve this issue ASAP.
>>>
>>
>>
>


-- 
Website: http://earl-of-code.com

Reply via email to