Add option to only add a comment on a failed build

This makes it possible to have the plugin only add a comment when a build fails.