This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Issues.
Summary
Fails build if any issues are found matching a specific predicate.
- Assembly
- Cake
.Issues .dll - Namespace
- Cake
.Issues - Containing Type
- Aliases
Syntax
public static void BreakBuildOnIssues(this ICakeContext context, IEnumerable<IIssue> issues, Func<IIssue, bool> predicate, Action<IEnumerable<IIssue>> handler)
Examples
Fails build if errors are found:
BreakBuildOnIssues(
issues,
x => x.Priority >= (int)IssuePriority.Error,
x => Information("{0} issues found", x.Count()));
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
Parameters
Return Value
Type | Description |
---|---|
void |