Hello,

I would like to add multiple build steps that:
  - Run a bash (or ruby or whatever) script
  - If script returns failure, perform custom email behavior based on that 
script's output
  - The email, and the distribution list, are customized for this specific 
build step.

For example, a hypothetical Jenkins project setup:

Build
   Execute Shell
      * Main part where we build and produce a binary

   Execute Ruby Script #1
      * Run a script that validates some aspect of the built binary
      E-mail Notification
         * Send out an email if the Ruby script *in this Execute Ruby 
Script task* returned failure

   Execute shell
      * Run a script that validates some other aspect of the built binary
      E-mail Notification
         * Send out an email IF the shell script *in this Execute Shell 
task* returned failure
    
So is there any way to 'nest' an Email action *inside of* a single 'Execute 
Shell' or 'Execute Ruby Script' build step?  If not, each step's script has 
to implement its own email handling, and that's not something I was hoping 
to re-invent (but is not the end of the world).

Thanks very much for your time!

-- 
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/d/optout.

Reply via email to