In a pipeline script I have the following post handler logic.
What used to happen is that emails would only be sent if the state changed. So if the build results were as follows
Then email would only be sent on the state change from UNSTABLE->FAILED or FAILED->UNSTABLE. Emails would not be sent when the state was UNSTABLE->UNSTABLE.
However our Jenkins server was updated over Christmas and as a result I am seeing an email being sent regardless of the state remaining the same. I could work around this by using something similar to
However the previous behaviour was what I was expecting to see. Changes in the pipeline plugins seem to be
|Plugin||Previous version||New version|
|Pipeline: Basic Steps||2.5||2.6|
|Pipeline: Build Step||2.5.1||2.6|
|Pipeline: Declarative Extension Points API||1.2.2||1.2.5|
|Pipeline: Nodes and Processes||2.11||2.17|
|Pipeline: Shared Groovy Libraries||2.8||2.9|
|Pipeline: Stage Step||2.2||2.3|
|Pipeline: Step API||2.13||2.14|