You can recieve result that is CLI command' s result not a build result.
- Install "mail commander" from menu 'Jenkins>>Plugin manager>>mail commander'.
Please configure E-mail Notification ( Menu 'Manage Jenkins >> Configure System >> E-mail Notification ) SMTP server, System Admin E-mail Address and Jenkins URL.
2. You configure job parameter. Parameter have three points that is build, post build action, and build trigger.
<Step 1. Build> please select "Mail Commander" and set parameter.
Mail commander CLI subject sample : build testjob
- Mail Commander find "groovy" in subject, it is proccess mail content as groovy script.
- initial release.