When used in Pipelines, this plugin will act somewhat differently than in AbstractBuild subclasses. Specifically, notification strategy relies on a build result being set, but in pipelines it is not (yet) set. Here are some ways to use it: