Running Copilot #3
Annotations
1 error
|
copilot
{message}\\\";\\n\\n public static string FormatWarningCommand(string message) => $\\\"##[warning]{message}\\\";\\n\\n public static string SetResult(PipelineResult result) => result switch\\n {\\n PipelineResult.Succeeded => SetResult(\\\"Succeeded\\\"),\\n PipelineResult.SucceededWithIssues => SetResult(\\\"SucceededWithIssues\\\"),\\n PipelineResult.Failed => SetResult(\\\"Failed\\\"),\\n _ => \\\"\\\"\\n };\\n\\n private static string SetResult(string resultText) => $\\\"##vso[task.complete result={resultText}]\\\";\\n}\\n/*...*/\\n```File: `src/ImageBuilder/PipelineHelper.cs`\\n```c#\\n/*...*/// Licensed to the .NET Foundation under one or more agreements.\\n// The .NET Foundation licenses this file to you under the MIT license.\\n// See the LICENSE file in the project root for more information.\\n\\n#nullable enable\\n\\nnamespace Microsoft.DotNet.ImageBuilder;\\n\\n/// <summary>\\n/// Formats logging messages for Azure pipelines.\\n/// </summary>\\n/// <remarks>\\n/// See https://learn.microsoft.com/azure/devops/pipelines/scripts/logging-commands\\n/// </remarks>\\npublic static class PipelineHelper\\n{\\n /*...*/\\n}\\n\\n/// <summary>\\n/// Represents the result of a pipeline operation.\\n/// </summary>\\n/// <remarks>\\n/// See https://learn.microsoft.com/azure/devops/pipelines/scripts/logging-commands#properties-2\\n/// </remarks>\\npublic enum PipelineResult\\n{\\n /*...*/\\n}\\n\\n```\",\"languageName\":\"C#\",\"path\":\"src/ImageBuilder/PipelineHelper.cs\",\"range\":{\"start\":1,\"end\":46},\"ref\":\"refs/heads/main\",\"type\":\"snippet\",\"url\":\"https://github.com/dotnet/docker-tools/blob/d8ec35da1d8512372faf63be8cefc8ed3cf57373/src/ImageBuilder/PipelineHelper.cs#L1-L46\"},{\"contents\":\"File: `eng/common/Get-ImageNameVars.ps1`\\n```powershell\\n# Returns a hashtable of variable name-to-value mapping representing the image name variables\\n# used by the common build infrastructure.\\n\\n$vars = @{}\\nGet-Content $PSScriptRoot/templates/variables/docker-images.yml |\\n Where-Object { $_.Trim().Length -gt 0 -and $_.Trim() -notlike 'variables:' -and $_.Trim() -notlike '# *' } |\\n ForEach-Object {\\n $parts = $_.Split(':', 2)\\n $vars[$parts[0].Trim()] = $parts[1].Trim()\\n }\\n\\nreturn $vars\\n\\n```\",\"languageName\":\"PowerShell\",\"path\":\"eng/common/Get-ImageNameVars.ps1\",\"range\":{\"start\":1,\"end\":12},\"ref\":\"refs/heads/main\",\"type\":\"snippet\",\"url\":\"https://github.com/dotnet/docker-tools/blob/d8ec35da1d8512372faf63be8cefc8ed3cf57373/eng/common/Get-ImageNameVars.ps1#L1-L12\"},{\"contents\":\"File: `src/ImageBuilder.Tests/BuildCommandTests.cs`\\n```c#\\n/*...*/\\nnamespace Microsoft.DotNet.ImageBuilder.Tests\\n{\\n public class BuildCommandTests\\n {\\n /*...*/\\n /// <summary>\\n /// Verifies the command outputs an image info correctly for a basic scenario.\\n /// </summary>\\n [Fact]\\n public async Task BuildCommand_ImageInfoOutput_Basic()\\n {\\n /*...*/\\n Dockerfile = runtimeDepsDockerfileRelativePath,\\n Architecture = \\\"amd64\\\",\\n OsType = \\\"Linux\\\",\\n OsVersion = \\\"noble\\\",\\n Digest = runtimeDepsDigest,\\n BaseImageDigest = baseImageDigest,\\n Layers = runtimeDepsLayers.ToList(),\\n Created = createdDate.ToUniversalTime(),\\n CommitUrl = $\\\"{command.Options.SourceRepoUrl}/blob/{dockerfileCommitSha}/{runtimeDepsDockerfileRelativePath}\\\",\\n SimpleTags =\\n {\\n tag\\n },
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
results
|
1.5 KB |
sha256:21540e82e2ce5fb157f90d15550d7bb67ec35d50583ff8f08ab4cbc7f67e47ca
|
|