3 instantiations of FailureCategory
Microsoft.DotNet.Helix.Sdk (3)
FailureCategory.cs (3)
10
public static FailureCategory Build { get; } = new
FailureCategory
("Build");
11
public static FailureCategory Test { get; } = new
FailureCategory
("Test");
12
public static FailureCategory Helix { get; } = new
FailureCategory
("Helix");
33 references to FailureCategory
Microsoft.DotNet.Helix.Sdk (33)
AzureDevOpsTask.cs (7)
52
Log.LogError(
FailureCategory
.Build, "This task must be run inside an Azure Pipelines Build");
78
Log.LogErrorFromException(
FailureCategory
.Helix, ex, true);
100
Log.LogError(
FailureCategory
.Helix, ex.ToString());
116
Log.LogError(
FailureCategory
.Helix, ex.ToString());
126
FailureCategory
.Build,
136
Log.LogError(
FailureCategory
.Build, message);
162
Log.LogError(
FailureCategory
.Helix, $"Request to {req.RequestUri} returned unexpected response: {responseContent}");
CheckAzurePipelinesTestResults.cs (7)
122
Log.LogError(
FailureCategory
.Test, $"Test run {testRunId} has one or more failing tests based on run statistics, but I couldn't find the failures.");
150
Log.LogError(
FailureCategory
.Test, $"Test {name} has failed. Check the Test tab or this console log: {workItem.GetMetadata("ConsoleOutputUri")}");
154
Log.LogError(
FailureCategory
.Test, $"Test {name} has failed. Check the Test tab for details.");
187
Log.LogError(
FailureCategory
.Test, message);
197
Log.LogError(
FailureCategory
.Helix, "Unable to get test report from build.");
234
Log.LogError(
FailureCategory
.Test, $"TestRun {runId}: Test {testName} has failed and is not expected to fail.");
240
Log.LogError(
FailureCategory
.Test, $"TestRun {runId}: Test {expectedFailure} was expected to fail but did not fail.");
CheckHelixJobStatus.cs (1)
44
Log.LogError(
FailureCategory
.Test, $"Work item {workItemName} in job {jobName} has failed.\nFailure log: {consoleUri}{accessTokenSuffix}");
DownloadFromResultsContainer.cs (1)
134
Log.LogError(
FailureCategory
.Build, $"Required parameter {parameter} string was null or empty");
FailureCategory.cs (3)
10
public static
FailureCategory
Build { get; } = new FailureCategory("Build");
11
public static
FailureCategory
Test { get; } = new FailureCategory("Test");
12
public static
FailureCategory
Helix { get; } = new FailureCategory("Helix");
FindDotNetCliPackage.cs (1)
127
Log.LogError(
FailureCategory
.Build, $"Unable to find dotnet cli {PackageType} version {Version} from any of the specified feeds.");
GetHelixWorkItems.cs (1)
48
FailureCategory
.Build,
HelixTask.cs (4)
65
Log.LogError(
FailureCategory
.Build, "Helix operation returned 'Unauthorized'. Did you forget to set HelixAccessToken?");
69
Log.LogError(
FailureCategory
.Build, "Helix operation returned 'Forbidden'.");
80
Log.LogError(
FailureCategory
.Build, argEx.Message);
89
Log.LogErrorFromException(
FailureCategory
.Helix, ex, true, true, null);
LoggerExtensions.cs (3)
25
public static FailureCategoryScope EnterFailureCategoryScope(this TaskLoggingHelper log,
FailureCategory
category)
42
public static void LogError(this TaskLoggingHelper log,
FailureCategory
category, string message, params object[] messageArgs)
52
FailureCategory
category,
SendHelixJob.cs (4)
169
Log.LogError(
FailureCategory
.Build, "Creator is required when using anonymous access.");
175
Log.LogError(
FailureCategory
.Build, "Creator is forbidden when using authenticated access.");
222
Log.LogError(
FailureCategory
.Build, "SendHelixJob given no WorkItems to send.");
568
Log.LogError(
FailureCategory
.Build, $"Correlation Payload '{path}' not found.");
TaskItemExtensions.cs (1)
22
log.LogError(
FailureCategory
.Build, $"Item '{item.ItemSpec}' missing required metadata '{key}'.");