Hi n email notifiers there are different options, "on error", "always", "on abort", etc etc.
Is there a way to email only if job has different outcome than the last run? For example success -> error, or error -> abort
I've thought about adding a procedure step but that would become part of the test itself. I need something post-steps and pre-email-notifier. Any thoughts/solutions?
Answer by annie · Sep 11, 2014 at 08:13 PM
( create a /myProject/status property 1st ) ectool createProperty "/myJob/sendMail" --value "false" if [ "$[/myProject/status]" != "$myStatus" ] ; then ectool setProperty "/myJob/sendMail" --value "true" fi ectool setProperty "/myProject/status" --value $myStatus2. in email notificaiton. use condition trigger
$[/javascript if(getProperty("/myJob/sendMail") == 'true') true; else false;]
Answer by lrochette · Aug 19, 2014 at 06:14 PM
You would have to save the outcome of your last job as a project property for example (somehwre that will exist between jobs) Then you condition for your email notifier would something like:
$[/javascript "$[/myProject/lastOutcome]" != "$[/myJob/outcome]" ];
How to fix error NoSuchConfig in plugin EC-SendEmail? 1 Answer
How do I create an email notifier that will go to the submitter of a job? 1 Answer
How to include procedure output in email Notifier body with ElectricCommander? 1 Answer
How can I display a multi-line property in a ElectricCommander email notifier? 1 Answer
Email configuration for non-authenticated Exchange server? 1 Answer
Electric Cloud powers Continuous Delivery, helping organizations developing deliver better software faster by automating and accelerating build, test, and deployment processes at scale. Industry leaders like Qualcomm, SpaceX, Cisco, GE, Gap, and E*TRADE use Electric Cloud solutions to boost DevOps productivity and Agile throughput.