From aa4511fdc139e979135b1451ed30e8c7e038911d Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" Date: Fri, 22 Aug 2025 02:12:38 +0000 Subject: [PATCH 1/2] Backflow from https://github.com/dotnet/dotnet / 619d563 build 280198 [[ commit created by automation ]] --- src/Shared/RoslynUtils/SymbolExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shared/RoslynUtils/SymbolExtensions.cs b/src/Shared/RoslynUtils/SymbolExtensions.cs index 19497ab4e989..cc8eb3d68710 100644 --- a/src/Shared/RoslynUtils/SymbolExtensions.cs +++ b/src/Shared/RoslynUtils/SymbolExtensions.cs @@ -231,7 +231,7 @@ private static string InnerGetDefaultValueString(object? defaultValue, ITypeSymb double d when d is double.PositiveInfinity => "double.PositiveInfinity", double d when d is double.NaN => "double.NaN", decimal d => $"{SymbolDisplay.FormatPrimitive(d, false, false)}M", - _ => SymbolDisplay.FormatPrimitive(defaultValue, false, false), + _ => SymbolDisplay.FormatPrimitive(defaultValue, false, false)!, }; } From bfad32c42d89bf16f60e738663d17d4a9a5627df Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" Date: Fri, 22 Aug 2025 02:12:39 +0000 Subject: [PATCH 2/2] Update dependencies from https://github.com/dotnet/dotnet build 280198 Updated Dependencies: Microsoft.NET.Runtime.WebAssembly.Sdk, Microsoft.NETCore.BrowserDebugHost.Transport, Microsoft.NET.Runtime.MonoAOTCompiler.Task, dotnet-ef, Microsoft.Bcl.AsyncInterfaces, Microsoft.Bcl.TimeProvider, Microsoft.EntityFrameworkCore, Microsoft.EntityFrameworkCore.Design, Microsoft.EntityFrameworkCore.InMemory, Microsoft.EntityFrameworkCore.Relational, Microsoft.EntityFrameworkCore.Sqlite, Microsoft.EntityFrameworkCore.SqlServer, Microsoft.EntityFrameworkCore.Tools, Microsoft.Extensions.Caching.Abstractions, Microsoft.Extensions.Caching.Memory, Microsoft.Extensions.Configuration, Microsoft.Extensions.Configuration.Abstractions, Microsoft.Extensions.Configuration.Binder, Microsoft.Extensions.Configuration.CommandLine, Microsoft.Extensions.Configuration.EnvironmentVariables, Microsoft.Extensions.Configuration.FileExtensions, Microsoft.Extensions.Configuration.Ini, Microsoft.Extensions.Configuration.Json, Microsoft.Extensions.Configuration.UserSecrets, Microsoft.Extensions.Configuration.Xml, Microsoft.Extensions.DependencyInjection, Microsoft.Extensions.DependencyInjection.Abstractions, Microsoft.Extensions.DependencyModel, Microsoft.Extensions.Diagnostics, Microsoft.Extensions.Diagnostics.Abstractions, Microsoft.Extensions.FileProviders.Abstractions, Microsoft.Extensions.FileProviders.Composite, Microsoft.Extensions.FileProviders.Physical, Microsoft.Extensions.FileSystemGlobbing, Microsoft.Extensions.HostFactoryResolver.Sources, Microsoft.Extensions.Hosting, Microsoft.Extensions.Hosting.Abstractions, Microsoft.Extensions.Http, Microsoft.Extensions.Logging, Microsoft.Extensions.Logging.Abstractions, Microsoft.Extensions.Logging.Configuration, Microsoft.Extensions.Logging.Console, Microsoft.Extensions.Logging.Debug, Microsoft.Extensions.Logging.EventLog, Microsoft.Extensions.Logging.EventSource, Microsoft.Extensions.Logging.TraceSource, Microsoft.Extensions.Options, Microsoft.Extensions.Options.ConfigurationExtensions, Microsoft.Extensions.Options.DataAnnotations, Microsoft.Extensions.Primitives, Microsoft.Internal.Runtime.AspNetCore.Transport, Microsoft.NETCore.App.Ref, Microsoft.NETCore.Platforms, System.Collections.Immutable, System.Composition, System.Configuration.ConfigurationManager, System.Diagnostics.DiagnosticSource, System.Diagnostics.EventLog, System.Diagnostics.PerformanceCounter, System.DirectoryServices.Protocols, System.Formats.Asn1, System.Formats.Cbor, System.IO.Hashing, System.IO.Pipelines, System.Memory.Data, System.Net.Http.Json, System.Net.Http.WinHttpHandler, System.Net.ServerSentEvents, System.Numerics.Tensors, System.Reflection.Metadata, System.Resources.Extensions, System.Runtime.Caching, System.Security.Cryptography.Pkcs, System.Security.Cryptography.Xml, System.Security.Permissions, System.ServiceProcess.ServiceController, System.Text.Encodings.Web, System.Text.Json, System.Threading.AccessControl, System.Threading.Channels, System.Threading.RateLimiting (Version 10.0.0-rc.2.25416.109 -> 10.0.0-rc.2.25420.109) Microsoft.DotNet.Arcade.Sdk, Microsoft.DotNet.Build.Tasks.Archives, Microsoft.DotNet.Build.Tasks.Installers, Microsoft.DotNet.Build.Tasks.Templating, Microsoft.DotNet.Helix.Sdk, Microsoft.DotNet.RemoteExecutor, Microsoft.DotNet.SharedFramework.Sdk (Version 10.0.0-beta.25416.109 -> 10.0.0-beta.25420.109) Microsoft.Web.Xdt (Version 3.2.0-preview.25416.109 -> 3.2.0-preview.25420.109) NuGet.Frameworks, NuGet.Packaging, NuGet.Versioning (Version 7.0.0-preview.1.41709 -> 7.0.0-preview.1.42109) --- eng/Version.Details.props | 184 ++++----- eng/Version.Details.xml | 370 +++++++++--------- eng/common/SetupNugetSources.ps1 | 4 +- eng/common/SetupNugetSources.sh | 4 +- eng/common/core-templates/job/job.yml | 6 +- eng/common/core-templates/job/onelocbuild.yml | 6 +- .../job/publish-build-assets.yml | 10 +- .../core-templates/jobs/codeql-build.yml | 2 +- eng/common/core-templates/jobs/jobs.yml | 2 + .../core-templates/post-build/post-build.yml | 8 +- .../post-build/setup-maestro-vars.yml | 2 +- .../steps/enable-internal-sources.yml | 12 +- .../core-templates/steps/generate-sbom.yml | 2 +- .../steps/install-microbuild.yml | 41 +- .../core-templates/steps/publish-logs.yml | 14 +- .../steps/source-index-stage1-publish.yml | 2 +- eng/common/template-guidance.md | 2 +- eng/common/templates-official/job/job.yml | 2 +- .../variables/sdl-variables.yml | 2 +- eng/common/templates/job/job.yml | 4 +- global.json | 6 +- 21 files changed, 351 insertions(+), 334 deletions(-) diff --git a/eng/Version.Details.props b/eng/Version.Details.props index 27042355dfe2..8e9fd67c8797 100644 --- a/eng/Version.Details.props +++ b/eng/Version.Details.props @@ -7,98 +7,98 @@ This file should be imported by eng/Versions.props - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-beta.25416.109 - 10.0.0-beta.25416.109 - 10.0.0-beta.25416.109 - 10.0.0-beta.25416.109 - 10.0.0-beta.25416.109 - 10.0.0-beta.25416.109 - 10.0.0-beta.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 3.2.0-preview.25416.109 - 7.0.0-preview.1.41709 - 7.0.0-preview.1.41709 - 7.0.0-preview.1.41709 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 - 10.0.0-rc.2.25416.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-beta.25420.109 + 10.0.0-beta.25420.109 + 10.0.0-beta.25420.109 + 10.0.0-beta.25420.109 + 10.0.0-beta.25420.109 + 10.0.0-beta.25420.109 + 10.0.0-beta.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 3.2.0-preview.25420.109 + 7.0.0-preview.1.42109 + 7.0.0-preview.1.42109 + 7.0.0-preview.1.42109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 + 10.0.0-rc.2.25420.109 4.13.0-3.24613.7 4.13.0-3.24613.7 diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 00b67d2bfa57..517d73f1bb9c 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -8,333 +8,333 @@ See https://github.com/dotnet/arcade/blob/master/Documentation/Darc.md for instructions on using darc. --> - + - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 @@ -358,37 +358,37 @@ - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 https://github.com/dotnet/extensions @@ -440,17 +440,17 @@ https://github.com/dotnet/msbuild d1cce8d7cc03c23a4f1bad8e9240714fd9d199a3 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 - + https://github.com/dotnet/dotnet - 7f2a07b481a3d24677ebcf6a45e7e27c8ff95a4e + 619d5633513d1b31c528db4360833fce52f51829 diff --git a/eng/common/SetupNugetSources.ps1 b/eng/common/SetupNugetSources.ps1 index 5db4ad71ee2f..792b60b49d42 100644 --- a/eng/common/SetupNugetSources.ps1 +++ b/eng/common/SetupNugetSources.ps1 @@ -10,8 +10,8 @@ # displayName: Setup Private Feeds Credentials # condition: eq(variables['Agent.OS'], 'Windows_NT') # inputs: -# filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1 -# arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token +# filePath: $(System.DefaultWorkingDirectory)/eng/common/SetupNugetSources.ps1 +# arguments: -ConfigFile $(System.DefaultWorkingDirectory)/NuGet.config -Password $Env:Token # env: # Token: $(dn-bot-dnceng-artifact-feeds-rw) # diff --git a/eng/common/SetupNugetSources.sh b/eng/common/SetupNugetSources.sh index 4604b61b0323..facb415ca6ff 100755 --- a/eng/common/SetupNugetSources.sh +++ b/eng/common/SetupNugetSources.sh @@ -11,8 +11,8 @@ # - task: Bash@3 # displayName: Setup Internal Feeds # inputs: -# filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh -# arguments: $(Build.SourcesDirectory)/NuGet.config +# filePath: $(System.DefaultWorkingDirectory)/eng/common/SetupNugetSources.sh +# arguments: $(System.DefaultWorkingDirectory)/NuGet.config # condition: ne(variables['Agent.OS'], 'Windows_NT') # - task: NuGetAuthenticate@1 # diff --git a/eng/common/core-templates/job/job.yml b/eng/common/core-templates/job/job.yml index d9013251542c..5ce518406198 100644 --- a/eng/common/core-templates/job/job.yml +++ b/eng/common/core-templates/job/job.yml @@ -163,7 +163,7 @@ jobs: inputs: testResultsFormat: 'xUnit' testResultsFiles: '*.xml' - searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)' + searchFolder: '$(System.DefaultWorkingDirectory)/artifacts/TestResults/$(_BuildConfig)' testRunTitle: ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-xunit mergeTestResults: ${{ parameters.mergeTestResults }} continueOnError: true @@ -174,7 +174,7 @@ jobs: inputs: testResultsFormat: 'VSTest' testResultsFiles: '*.trx' - searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)' + searchFolder: '$(System.DefaultWorkingDirectory)/artifacts/TestResults/$(_BuildConfig)' testRunTitle: ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-trx mergeTestResults: ${{ parameters.mergeTestResults }} continueOnError: true @@ -218,7 +218,7 @@ jobs: - task: CopyFiles@2 displayName: Gather buildconfiguration for build retry inputs: - SourceFolder: '$(Build.SourcesDirectory)/eng/common/BuildConfiguration' + SourceFolder: '$(System.DefaultWorkingDirectory)/eng/common/BuildConfiguration' Contents: '**' TargetFolder: '$(Build.ArtifactStagingDirectory)/eng/common/BuildConfiguration' continueOnError: true diff --git a/eng/common/core-templates/job/onelocbuild.yml b/eng/common/core-templates/job/onelocbuild.yml index 8bf7d23355bc..c5788829a872 100644 --- a/eng/common/core-templates/job/onelocbuild.yml +++ b/eng/common/core-templates/job/onelocbuild.yml @@ -8,7 +8,7 @@ parameters: CeapexPat: $(dn-bot-ceapex-package-r) # PAT for the loc AzDO instance https://dev.azure.com/ceapex GithubPat: $(BotAccount-dotnet-bot-repo-PAT) - SourcesDirectory: $(Build.SourcesDirectory) + SourcesDirectory: $(System.DefaultWorkingDirectory) CreatePr: true AutoCompletePr: false ReusePr: true @@ -68,7 +68,7 @@ jobs: - ${{ if ne(parameters.SkipLocProjectJsonGeneration, 'true') }}: - task: Powershell@2 inputs: - filePath: $(Build.SourcesDirectory)/eng/common/generate-locproject.ps1 + filePath: $(System.DefaultWorkingDirectory)/eng/common/generate-locproject.ps1 arguments: $(_GenerateLocProjectArguments) displayName: Generate LocProject.json condition: ${{ parameters.condition }} @@ -103,7 +103,7 @@ jobs: - task: CopyFiles@2 displayName: Copy LocProject.json inputs: - SourceFolder: '$(Build.SourcesDirectory)/eng/Localize/' + SourceFolder: '$(System.DefaultWorkingDirectory)/eng/Localize/' Contents: 'LocProject.json' TargetFolder: '$(Build.ArtifactStagingDirectory)/loc' condition: ${{ parameters.condition }} diff --git a/eng/common/core-templates/job/publish-build-assets.yml b/eng/common/core-templates/job/publish-build-assets.yml index d5303229c97e..348cd16376f1 100644 --- a/eng/common/core-templates/job/publish-build-assets.yml +++ b/eng/common/core-templates/job/publish-build-assets.yml @@ -38,6 +38,8 @@ parameters: # Optional: A minimatch pattern for the asset manifests to publish to BAR assetManifestsPattern: '*/manifests/**/*.xml' + repositoryAlias: self + jobs: - job: Asset_Registry_Publish @@ -78,7 +80,7 @@ jobs: - 'Illegal entry point, is1ESPipeline is not defined. Repository yaml should not directly reference templates in core-templates folder.': error - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - - checkout: self + - checkout: ${{ parameters.repositoryAlias }} fetchDepth: 3 clean: true @@ -117,7 +119,7 @@ jobs: azureSubscription: "Darc: Maestro Production" scriptType: ps scriptLocation: scriptPath - scriptPath: $(Build.SourcesDirectory)/eng/common/sdk-task.ps1 + scriptPath: $(System.DefaultWorkingDirectory)/eng/common/sdk-task.ps1 arguments: -task PublishBuildAssets -restore -msbuildEngine dotnet /p:ManifestsPath='$(Build.StagingDirectory)/AssetManifests' /p:IsAssetlessBuild=${{ parameters.isAssetlessBuild }} @@ -137,7 +139,7 @@ jobs: Add-Content -Path $filePath -Value "$(DefaultChannels)" Add-Content -Path $filePath -Value $(IsStableBuild) - $symbolExclusionfile = "$(Build.SourcesDirectory)/eng/SymbolPublishingExclusionsFile.txt" + $symbolExclusionfile = "$(System.DefaultWorkingDirectory)/eng/SymbolPublishingExclusionsFile.txt" if (Test-Path -Path $symbolExclusionfile) { Write-Host "SymbolExclusionFile exists" @@ -177,7 +179,7 @@ jobs: azureSubscription: "Darc: Maestro Production" scriptType: ps scriptLocation: scriptPath - scriptPath: $(Build.SourcesDirectory)/eng/common/post-build/publish-using-darc.ps1 + scriptPath: $(System.DefaultWorkingDirectory)/eng/common/post-build/publish-using-darc.ps1 arguments: > -BuildId $(BARBuildId) -PublishingInfraVersion 3 diff --git a/eng/common/core-templates/jobs/codeql-build.yml b/eng/common/core-templates/jobs/codeql-build.yml index 693b00b37044..dbc14ac580a2 100644 --- a/eng/common/core-templates/jobs/codeql-build.yml +++ b/eng/common/core-templates/jobs/codeql-build.yml @@ -24,7 +24,7 @@ jobs: - name: DefaultGuardianVersion value: 0.109.0 - name: GuardianPackagesConfigFile - value: $(Build.SourcesDirectory)\eng\common\sdl\packages.config + value: $(System.DefaultWorkingDirectory)\eng\common\sdl\packages.config - name: GuardianVersion value: ${{ coalesce(parameters.overrideGuardianVersion, '$(DefaultGuardianVersion)') }} diff --git a/eng/common/core-templates/jobs/jobs.yml b/eng/common/core-templates/jobs/jobs.yml index 2f992b2c6ecc..b637cb6e9480 100644 --- a/eng/common/core-templates/jobs/jobs.yml +++ b/eng/common/core-templates/jobs/jobs.yml @@ -43,6 +43,7 @@ parameters: artifacts: {} is1ESPipeline: '' + repositoryAlias: self # Internal resources (telemetry, microbuild) can only be accessed from non-public projects, # and some (Microbuild) should only be applied to non-PR cases for internal builds. @@ -114,3 +115,4 @@ jobs: enablePublishBuildArtifacts: ${{ parameters.enablePublishBuildArtifacts }} artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }} signingValidationAdditionalParameters: ${{ parameters.signingValidationAdditionalParameters }} + repositoryAlias: ${{ parameters.repositoryAlias }} diff --git a/eng/common/core-templates/post-build/post-build.yml b/eng/common/core-templates/post-build/post-build.yml index a151fd811e3e..f6f87fe5c675 100644 --- a/eng/common/core-templates/post-build/post-build.yml +++ b/eng/common/core-templates/post-build/post-build.yml @@ -154,7 +154,7 @@ stages: - task: PowerShell@2 displayName: Validate inputs: - filePath: $(Build.SourcesDirectory)/eng/common/post-build/nuget-validation.ps1 + filePath: $(System.DefaultWorkingDirectory)/eng/common/post-build/nuget-validation.ps1 arguments: -PackagesPath $(Build.ArtifactStagingDirectory)/PackageArtifacts/ - job: @@ -208,7 +208,7 @@ stages: filePath: eng\common\sdk-task.ps1 arguments: -task SigningValidation -restore -msbuildEngine vs /p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts' - /p:SignCheckExclusionsFile='$(Build.SourcesDirectory)/eng/SignCheckExclusionsFile.txt' + /p:SignCheckExclusionsFile='$(System.DefaultWorkingDirectory)/eng/SignCheckExclusionsFile.txt' ${{ parameters.signingValidationAdditionalParameters }} - template: /eng/common/core-templates/steps/publish-logs.yml @@ -258,7 +258,7 @@ stages: - task: PowerShell@2 displayName: Validate inputs: - filePath: $(Build.SourcesDirectory)/eng/common/post-build/sourcelink-validation.ps1 + filePath: $(System.DefaultWorkingDirectory)/eng/common/post-build/sourcelink-validation.ps1 arguments: -InputPath $(Build.ArtifactStagingDirectory)/BlobArtifacts/ -ExtractPath $(Agent.BuildDirectory)/Extract/ -GHRepoName $(Build.Repository.Name) @@ -313,7 +313,7 @@ stages: azureSubscription: "Darc: Maestro Production" scriptType: ps scriptLocation: scriptPath - scriptPath: $(Build.SourcesDirectory)/eng/common/post-build/publish-using-darc.ps1 + scriptPath: $(System.DefaultWorkingDirectory)/eng/common/post-build/publish-using-darc.ps1 arguments: > -BuildId $(BARBuildId) -PublishingInfraVersion ${{ parameters.publishingInfraVersion }} diff --git a/eng/common/core-templates/post-build/setup-maestro-vars.yml b/eng/common/core-templates/post-build/setup-maestro-vars.yml index f7602980dbe7..a7abd58c4bb6 100644 --- a/eng/common/core-templates/post-build/setup-maestro-vars.yml +++ b/eng/common/core-templates/post-build/setup-maestro-vars.yml @@ -36,7 +36,7 @@ steps: $AzureDevOpsBuildId = $Env:Build_BuildId } else { - . $(Build.SourcesDirectory)\eng\common\tools.ps1 + . $(System.DefaultWorkingDirectory)\eng\common\tools.ps1 $darc = Get-Darc $buildInfo = & $darc get-build ` --id ${{ parameters.BARBuildId }} ` diff --git a/eng/common/core-templates/steps/enable-internal-sources.yml b/eng/common/core-templates/steps/enable-internal-sources.yml index 64f881bffc3c..4085512b6909 100644 --- a/eng/common/core-templates/steps/enable-internal-sources.yml +++ b/eng/common/core-templates/steps/enable-internal-sources.yml @@ -17,8 +17,8 @@ steps: - task: PowerShell@2 displayName: Setup Internal Feeds inputs: - filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1 - arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token + filePath: $(System.DefaultWorkingDirectory)/eng/common/SetupNugetSources.ps1 + arguments: -ConfigFile $(System.DefaultWorkingDirectory)/NuGet.config -Password $Env:Token env: Token: ${{ parameters.legacyCredential }} # If running on dnceng (internal project), just use the default behavior for NuGetAuthenticate. @@ -29,8 +29,8 @@ steps: - task: PowerShell@2 displayName: Setup Internal Feeds inputs: - filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1 - arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config + filePath: $(System.DefaultWorkingDirectory)/eng/common/SetupNugetSources.ps1 + arguments: -ConfigFile $(System.DefaultWorkingDirectory)/NuGet.config - ${{ else }}: - template: /eng/common/templates/steps/get-federated-access-token.yml parameters: @@ -39,8 +39,8 @@ steps: - task: PowerShell@2 displayName: Setup Internal Feeds inputs: - filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1 - arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $(dnceng-artifacts-feeds-read-access-token) + filePath: $(System.DefaultWorkingDirectory)/eng/common/SetupNugetSources.ps1 + arguments: -ConfigFile $(System.DefaultWorkingDirectory)/NuGet.config -Password $(dnceng-artifacts-feeds-read-access-token) # This is required in certain scenarios to install the ADO credential provider. # It installed by default in some msbuild invocations (e.g. VS msbuild), but needs to be installed for others # (e.g. dotnet msbuild). diff --git a/eng/common/core-templates/steps/generate-sbom.yml b/eng/common/core-templates/steps/generate-sbom.yml index 44a9636cdff9..c05f65027979 100644 --- a/eng/common/core-templates/steps/generate-sbom.yml +++ b/eng/common/core-templates/steps/generate-sbom.yml @@ -6,7 +6,7 @@ parameters: PackageVersion: 10.0.0 - BuildDropPath: '$(Build.SourcesDirectory)/artifacts' + BuildDropPath: '$(System.DefaultWorkingDirectory)/artifacts' PackageName: '.NET' ManifestDirPath: $(Build.ArtifactStagingDirectory)/sbom IgnoreDirectories: '' diff --git a/eng/common/core-templates/steps/install-microbuild.yml b/eng/common/core-templates/steps/install-microbuild.yml index f614d1440edb..d6b9878f54db 100644 --- a/eng/common/core-templates/steps/install-microbuild.yml +++ b/eng/common/core-templates/steps/install-microbuild.yml @@ -12,6 +12,7 @@ parameters: # variable is not available in template expression. _SignType has a very large proliferation across .NET, so replacing it is tough. microbuildUseESRP: true # Location of the MicroBuild output folder + # NOTE: There's something that relies on this being in the "default" source directory for tasks such as Signing to work properly. microBuildOutputFolder: '$(Build.SourcesDirectory)' continueOnError: false @@ -46,8 +47,12 @@ steps: displayName: 'Validate ESRP usage (Non-Windows)' condition: and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT')) + # Two different MB install steps. This is due to not being able to use the agent OS during + # YAML expansion, and Windows vs. Linux/Mac uses different service connections. However, + # we can avoid including the MB install step if not enabled at all. This avoids a bunch of + # extra pipeline authorizations, since most pipelines do not sign on non-Windows. - task: MicroBuildSigningPlugin@4 - displayName: Install MicroBuild plugin + displayName: Install MicroBuild plugin (Windows) inputs: signType: $(_SignType) zipSources: false @@ -63,16 +68,24 @@ steps: MicroBuildOutputFolderOverride: ${{ parameters.microBuildOutputFolder }} SYSTEM_ACCESSTOKEN: $(System.AccessToken) continueOnError: ${{ parameters.continueOnError }} - condition: and( - succeeded(), - or( - and( - eq(variables['Agent.Os'], 'Windows_NT'), - in(variables['_SignType'], 'real', 'test') - ), - and( - ${{ eq(parameters.enableMicrobuildForMacAndLinux, true) }}, - ne(variables['Agent.Os'], 'Windows_NT'), - eq(variables['_SignType'], 'real') - ) - )) + condition: and(succeeded(), eq(variables['Agent.Os'], 'Windows_NT'), in(variables['_SignType'], 'real', 'test')) + + - ${{ if eq(parameters.enableMicrobuildForMacAndLinux, true) }}: + - task: MicroBuildSigningPlugin@4 + displayName: Install MicroBuild plugin (non-Windows) + inputs: + signType: $(_SignType) + zipSources: false + feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json + ${{ if eq(parameters.microbuildUseESRP, true) }}: + ConnectedServiceName: 'MicroBuild Signing Task (DevDiv)' + ${{ if eq(variables['System.TeamProject'], 'DevDiv') }}: + ConnectedPMEServiceName: beb8cb23-b303-4c95-ab26-9e44bc958d39 + ${{ else }}: + ConnectedPMEServiceName: c24de2a5-cc7a-493d-95e4-8e5ff5cad2bc + env: + TeamName: $(_TeamName) + MicroBuildOutputFolderOverride: ${{ parameters.microBuildOutputFolder }} + SYSTEM_ACCESSTOKEN: $(System.AccessToken) + continueOnError: ${{ parameters.continueOnError }} + condition: and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT'), eq(variables['_SignType'], 'real')) diff --git a/eng/common/core-templates/steps/publish-logs.yml b/eng/common/core-templates/steps/publish-logs.yml index de24d0087c58..10f825e270a0 100644 --- a/eng/common/core-templates/steps/publish-logs.yml +++ b/eng/common/core-templates/steps/publish-logs.yml @@ -12,22 +12,22 @@ steps: inputs: targetType: inline script: | - New-Item -ItemType Directory $(Build.SourcesDirectory)/PostBuildLogs/${{parameters.StageLabel}}/${{parameters.JobLabel}}/ - Move-Item -Path $(Build.SourcesDirectory)/artifacts/log/Debug/* $(Build.SourcesDirectory)/PostBuildLogs/${{parameters.StageLabel}}/${{parameters.JobLabel}}/ + New-Item -ItemType Directory $(System.DefaultWorkingDirectory)/PostBuildLogs/${{parameters.StageLabel}}/${{parameters.JobLabel}}/ + Move-Item -Path $(System.DefaultWorkingDirectory)/artifacts/log/Debug/* $(System.DefaultWorkingDirectory)/PostBuildLogs/${{parameters.StageLabel}}/${{parameters.JobLabel}}/ continueOnError: true condition: always() - task: PowerShell@2 displayName: Redact Logs inputs: - filePath: $(Build.SourcesDirectory)/eng/common/post-build/redact-logs.ps1 + filePath: $(System.DefaultWorkingDirectory)/eng/common/post-build/redact-logs.ps1 # For now this needs to have explicit list of all sensitive data. Taken from eng/publishing/v3/publish.yml - # Sensitive data can as well be added to $(Build.SourcesDirectory)/eng/BinlogSecretsRedactionFile.txt' + # Sensitive data can as well be added to $(System.DefaultWorkingDirectory)/eng/BinlogSecretsRedactionFile.txt' # If the file exists - sensitive data for redaction will be sourced from it # (single entry per line, lines starting with '# ' are considered comments and skipped) - arguments: -InputPath '$(Build.SourcesDirectory)/PostBuildLogs' + arguments: -InputPath '$(System.DefaultWorkingDirectory)/PostBuildLogs' -BinlogToolVersion ${{parameters.BinlogToolVersion}} - -TokensFilePath '$(Build.SourcesDirectory)/eng/BinlogSecretsRedactionFile.txt' + -TokensFilePath '$(System.DefaultWorkingDirectory)/eng/BinlogSecretsRedactionFile.txt' '$(publishing-dnceng-devdiv-code-r-build-re)' '$(MaestroAccessToken)' '$(dn-bot-all-orgs-artifact-feeds-rw)' @@ -44,7 +44,7 @@ steps: - task: CopyFiles@2 displayName: Gather post build logs inputs: - SourceFolder: '$(Build.SourcesDirectory)/PostBuildLogs' + SourceFolder: '$(System.DefaultWorkingDirectory)/PostBuildLogs' Contents: '**' TargetFolder: '$(Build.ArtifactStagingDirectory)/PostBuildLogs' condition: always() diff --git a/eng/common/core-templates/steps/source-index-stage1-publish.yml b/eng/common/core-templates/steps/source-index-stage1-publish.yml index c2917c1efc1c..75600735f175 100644 --- a/eng/common/core-templates/steps/source-index-stage1-publish.yml +++ b/eng/common/core-templates/steps/source-index-stage1-publish.yml @@ -20,7 +20,7 @@ steps: # Set working directory to temp directory so 'dotnet' doesn't try to use global.json and use the repo's sdk. workingDirectory: $(Agent.TempDirectory) -- script: $(Agent.TempDirectory)/.source-index/tools/BinLogToSln -i ${{parameters.BinlogPath}} -r $(Build.SourcesDirectory) -n $(Build.Repository.Name) -o .source-index/stage1output +- script: $(Agent.TempDirectory)/.source-index/tools/BinLogToSln -i ${{parameters.BinlogPath}} -r $(System.DefaultWorkingDirectory) -n $(Build.Repository.Name) -o .source-index/stage1output displayName: "Source Index: Process Binlog into indexable sln" - ${{ if and(ne(parameters.runAsPublic, 'true'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: diff --git a/eng/common/template-guidance.md b/eng/common/template-guidance.md index 98bbc1ded0ba..4bf4cf41bd7c 100644 --- a/eng/common/template-guidance.md +++ b/eng/common/template-guidance.md @@ -50,7 +50,7 @@ extends: - task: CopyFiles@2 displayName: Gather build output inputs: - SourceFolder: '$(Build.SourcesDirectory)/artifacts/marvel' + SourceFolder: '$(System.DefaultWorkingDirectory)/artifacts/marvel' Contents: '**' TargetFolder: '$(Build.ArtifactStagingDirectory)/artifacts/marvel' ``` diff --git a/eng/common/templates-official/job/job.yml b/eng/common/templates-official/job/job.yml index a8a943287458..92a0664f5647 100644 --- a/eng/common/templates-official/job/job.yml +++ b/eng/common/templates-official/job/job.yml @@ -3,7 +3,7 @@ parameters: enableSbom: true runAsPublic: false PackageVersion: 9.0.0 - BuildDropPath: '$(Build.SourcesDirectory)/artifacts' + BuildDropPath: '$(System.DefaultWorkingDirectory)/artifacts' jobs: - template: /eng/common/core-templates/job/job.yml diff --git a/eng/common/templates-official/variables/sdl-variables.yml b/eng/common/templates-official/variables/sdl-variables.yml index dbdd66d4a4b3..f1311bbb1b33 100644 --- a/eng/common/templates-official/variables/sdl-variables.yml +++ b/eng/common/templates-official/variables/sdl-variables.yml @@ -4,4 +4,4 @@ variables: - name: DefaultGuardianVersion value: 0.109.0 - name: GuardianPackagesConfigFile - value: $(Build.SourcesDirectory)\eng\common\sdl\packages.config \ No newline at end of file + value: $(System.DefaultWorkingDirectory)\eng\common\sdl\packages.config \ No newline at end of file diff --git a/eng/common/templates/job/job.yml b/eng/common/templates/job/job.yml index 7cbf668c22bc..238fa0818f7b 100644 --- a/eng/common/templates/job/job.yml +++ b/eng/common/templates/job/job.yml @@ -6,7 +6,7 @@ parameters: enableSbom: true runAsPublic: false PackageVersion: 9.0.0 - BuildDropPath: '$(Build.SourcesDirectory)/artifacts' + BuildDropPath: '$(System.DefaultWorkingDirectory)/artifacts' jobs: - template: /eng/common/core-templates/job/job.yml @@ -77,7 +77,7 @@ jobs: parameters: is1ESPipeline: false args: - targetPath: '$(Build.SourcesDirectory)\eng\common\BuildConfiguration' + targetPath: '$(System.DefaultWorkingDirectory)\eng\common\BuildConfiguration' artifactName: 'BuildConfiguration' displayName: 'Publish build retry configuration' continueOnError: true diff --git a/global.json b/global.json index f94c31e20aee..19b562f5b829 100644 --- a/global.json +++ b/global.json @@ -27,9 +27,9 @@ "jdk": "latest" }, "msbuild-sdks": { - "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25416.109", - "Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.25416.109", - "Microsoft.DotNet.SharedFramework.Sdk": "10.0.0-beta.25416.109", + "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25420.109", + "Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.25420.109", + "Microsoft.DotNet.SharedFramework.Sdk": "10.0.0-beta.25420.109", "Microsoft.Build.NoTargets": "3.7.0", "Microsoft.Build.Traversal": "3.4.0" }