There are two things you could do:

1) use a pre-send script to cancel the sending of the email if your
condition is not met
2) wait for the next release in which I am adding a PreBuildScriptTrigger
and an ScriptTrigger, which will allow you to determine your own method for
when an email should be sent.

slide


On Tue, Mar 5, 2013 at 3:42 PM, Mark Bretl <[email protected]> wrote:

> Hello Jenkins Users,
>
>
>
> I am looking for a way to send an email, using Email-Ext plugin, based on
> the result of a custom conditional. Reading the Email-Ext page, it can
> be triggered with build result statuses, but that is a static list as far I
> can tell. The other way I thought of to send an email is using the run
> condition plugin since is able to be used with build-steps and publishers,
> through the flexible-publish plugin, but it does not work with the notifier
> plugins such as Email-Ext...so that is a dead end.
>
>
>
> One 'ugly' workaround I have thought of would be to set the build result,
> based on a Boolean conditional, to an unused status such as 'Not Built'
> hoping it won't collide with it in the future. I would then use that to
> send an email with the Email-Ext plugin and trigger it on 'Not Built'.
>
>
>
> Any thoughts on possible solutions?
>
> Mark Bretl
> GemFire & SQLFire Build Engineer
> Member of Technical Staff
> VMware Inc.
> 503-533-3869
>
> --
> 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.
>
>
>



-- 
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