Aliases.

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

Summary

Fails build if any issues from a specific issue provider are found.
Assembly
Cake.Issues.dll
Namespace
Cake.Issues
Containing Type
Aliases

Syntax

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

Examples

Fails build if issues from MsBuild are found:

BreakBuildOnIssues(
        issues,
        MsBuildIssuesProviderTypeName,
        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.
providerType string Type of the issue provider.
handler Action<IEnumerable<IIssue>> Optional handler to call when issues from providerType are found.

Return Value

Type Description
void