Closed sergejmueller closed 3 years ago
This is not much different from the default behavior. Can you explain why you think that this should be included too?
This option different from current default behaviour, when build succeed(with no errors)
This option fully ignored alwaysNotify
, excludeWarnings
options, and lastBuildSucceeded
And only shows failed builds
Comparasion:
onlyOnError
onlyOnError
code may be simplification for the greater of clarity:
if (stats.hasErrors()) {
error = findFirstDFS(stats.compilation, 'errors');
} else if (this.options.onlyOnError) {
return;
} else if (stats.hasWarnings() && !this.options.excludeWarnings) {
... // current code
rebased manually
Trigger a notification only on error.