Aliases.

BreakBuildOnIssues(ICakeContext, IEnumerable<IIssue>, Func<IIssue, bool>, Action<IEnumerable<IIssue>>) Method

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
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
issues IEnumerable<IIssue> Issues which should be checked.
predicate Func<IIssue, bool> Predicate to .
handler Action<IEnumerable<IIssue>> Optional handler to call when issues matching predicate are found.

Return Value

Type Description
void