So for the following scenario:
1. A user pushed a change to the repo
2. A Mercurial hook trigger a job, let's say a unittest job
3. The unittest failed, and an *email was sent to the responsible 
developer*(the developer who pushed the changes)

There is no Jenkins solution (because step 3 is not possible)? It can only 
be done via 'polling'?


Thanks

On Thursday, January 9, 2014 5:21:48 PM UTC+2, slide wrote:
>
> If mercurial triggered the build, then there is no "requestor." The 
> requestor is a user that specifically triggers the build via the web.
>
>
> On Thu, Jan 9, 2014 at 7:48 AM, Avihay Eyal <[email protected]<javascript:>
> > wrote:
>
>> I can't really attach the log since it's an internal network. I can 
>> however write down some of the things I saw. The scenario is that a 
>> Mercurial hook triggered the job. So after the job was finished, this what 
>> I have at the end of the Console Output: 
>>
>> Build Step 'Execute shell' marked build as failure.
>> Checking for post-build
>> Performing post-build step
>> Checking if email needs to be generated
>> Email was triggered for: Failure
>> Sending email for trigger: Failure
>> Overriding default server settings, creating our own session
>> messageContentType = text/html; charset=UTF-8
>> Adding developers
>> Sending to requestor
>> Setting In-Reply-To since last build was not successful
>> Successfully created MimeMesssge
>> Sending email to: [email protected]
>> Finished: FAILURE
>>
>>
>>
>> Thanks 
>> On Thursday, January 9, 2014 3:07:58 PM UTC+2, slide wrote:
>>
>>> Please post your build log.
>>> On Jan 9, 2014 5:17 AM, "Avihay Eyal" <[email protected]> wrote:
>>>
>>>>  Hi, I added a post build event that sends an email upon 'Failure' to 
>>>> the 'Requestor'.
>>>> This is a trigger that I added under the 'Advanced' section of the 
>>>> Email-ext plugin.
>>>> Unfortunately, no email is sent to the requestor(I can receive the 
>>>> email, because I added my email in the 'cc')
>>>>
>>>> It happens when I build the job via the 'Build Now' button, and when  I 
>>>> build the job via Mercurial hook. In both of the cases, there is 
>>>> no recipient in the 'To' list.
>>>>
>>>> BTW, I tried before the 'developer' option, and expected that after a 
>>>> Mercurial hook is triggering the job, the developer email
>>>> will be in the 'To' list, but there was just the email - 'anonymous@XXX'
>>>>
>>>>
>>>> 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 [email protected].
>>>>
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>  -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> 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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to