You could use the SCRIPT content token to parse the log using groovy and
then just have the last line in the script be the users email address.
On Feb 13, 2012 11:22 PM, "Kishore" <[email protected]> wrote:

> Hi All
>
> I am trying to configure my jenkins builds such that, if the build
> fails the failure notification is send to the build owner. I have a
> script that can parse the build log and find the build break owner.
> However, this email id is dynamic and can change based on the build
> break.
> Is there a way I can configure the failure email to be sent to the
> owner identified by my script ( run in the build step ) ?
> I tried to use ext-mail plugin. There is an option to tokenize the
> recipient using the build parameter. However, I could not find a way
> to set a build paramater from within the build script.
>
> Please help. Let me know if there is a better way to do this. I like
> the email ext plugin and would like to use it if possible.
>
> Thanks in advance.
>
> -Kishore

Reply via email to