Aliases.

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

Summary

Fails build if any issues are found.
Assembly
Cake.Issues.dll
Namespace
Cake.Issues
Containing Type
Aliases

Syntax

public static void BreakBuildOnIssues(this ICakeContext context, IEnumerable<IIssue> issues, Action<IEnumerable<IIssue>> handler)

Examples

Fails build if issues are found:

BreakBuildOnIssues(
        issues,
        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.
handler Action<IEnumerable<IIssue>> Optional handler to call if issues contains items.

Return Value

Type Description
void