From 1635dbc74bf271f1b8120521839bb12912c321f1 Mon Sep 17 00:00:00 2001 From: Rainer Sigwald Date: Tue, 13 Jan 2026 08:05:46 -0600 Subject: [PATCH 1/3] Indent stages Encountered error(s) while parsing pipeline YAML: /release-pipeline.yml (Line: 28, Col: 3): Unexpected value 'stages' --- release-pipeline.yml | 116 +++++++++++++++++++++---------------------- 1 file changed, 58 insertions(+), 58 deletions(-) diff --git a/release-pipeline.yml b/release-pipeline.yml index e5013ea..5dcd9da 100644 --- a/release-pipeline.yml +++ b/release-pipeline.yml @@ -25,65 +25,65 @@ extends: networkIsolationPolicy: Permissive,CFSClean pool: name: VSEngSS-MicroBuild2022-1ES - stages: - - stage: RetainBuild - displayName: 'Retain build' - jobs: - - job: RetainBuildJob - displayName: 'Run on agent' - steps: - - download: microsoft_MSBuildLocator - displayName: 'Download Symbols Artifact' - artifact: Symbols + stages: + - stage: RetainBuild + displayName: 'Retain build' + jobs: + - job: RetainBuildJob + displayName: 'Run on agent' + steps: + - download: microsoft_MSBuildLocator + displayName: 'Download Symbols Artifact' + artifact: Symbols - - task: MicroBuildArchiveSymbols@6 - displayName: 'Archive $(SymbolsFeatureName) on Symweb' - inputs: - SymbolsFeatureName: '$(SymbolsFeatureName)' - SymbolsProject: '$(SymbolsProject)' - SymbolsAgentPath: '$(Pipeline.Workspace)/microsoft_MSBuildLocator/Symbols' - SubmitToInternet: true - ExpirationInDays: '5475' - azureSubscription: 'VSEng-SymbolsUpload' - env: - SYSTEM_ACCESSTOKEN: $(System.AccessToken) + - task: MicroBuildArchiveSymbols@6 + displayName: 'Archive $(SymbolsFeatureName) on Symweb' + inputs: + SymbolsFeatureName: '$(SymbolsFeatureName)' + SymbolsProject: '$(SymbolsProject)' + SymbolsAgentPath: '$(Pipeline.Workspace)/microsoft_MSBuildLocator/Symbols' + SubmitToInternet: true + ExpirationInDays: '5475' + azureSubscription: 'VSEng-SymbolsUpload' + env: + SYSTEM_ACCESSTOKEN: $(System.AccessToken) - - task: MicroBuildRetainVstsDrops@1 - displayName: 'Retain VSTS Drops' - enabled: false - inputs: - DropNames: '$(VstsDropNames)' - DropServiceUri: 'https://devdiv.artifacts.visualstudio.com/DefaultCollection' + - task: MicroBuildRetainVstsDrops@1 + displayName: 'Retain VSTS Drops' + enabled: false + inputs: + DropNames: '$(VstsDropNames)' + DropServiceUri: 'https://devdiv.artifacts.visualstudio.com/DefaultCollection' - - stage: PublicRelease - displayName: 'Public release' - dependsOn: RetainBuild - condition: succeeded() - jobs: - - job: PushToNuGet - displayName: 'Push to nuget.org' - steps: - - download: microsoft_MSBuildLocator - displayName: 'Download NuGet Package Artifact' - artifact: pkg - - task: NuGetCommand@2 - displayName: 'NuGet push' - inputs: - command: 'push' - packagesToPush: '$(Pipeline.Workspace)/microsoft_MSBuildLocator/pkg/Microsoft.Build.Locator*.nupkg' - nuGetFeedType: 'external' - publishFeedCredentials: 'MSBuild-Locator' - verbosityPush: 'Detailed' + - stage: PublicRelease + displayName: 'Public release' + dependsOn: RetainBuild + condition: succeeded() + jobs: + - job: PushToNuGet + displayName: 'Push to nuget.org' + steps: + - download: microsoft_MSBuildLocator + displayName: 'Download NuGet Package Artifact' + artifact: pkg + - task: NuGetCommand@2 + displayName: 'NuGet push' + inputs: + command: 'push' + packagesToPush: '$(Pipeline.Workspace)/microsoft_MSBuildLocator/pkg/Microsoft.Build.Locator*.nupkg' + nuGetFeedType: 'external' + publishFeedCredentials: 'MSBuild-Locator' + verbosityPush: 'Detailed' - - job: PublicNuGetRelease - displayName: 'Public NuGet release' - dependsOn: PushToNuGet - pool: server - steps: - - task: ManualValidation@0 - displayName: 'Push packages to NuGet' - inputs: - instructions: | - https://microsoft.sharepoint.com/teams/toolsforeng/_layouts/OneNote.aspx?id=%2Fteams%2Ftoolsforeng%2FOne%20Note%2FToolsForSoftwareEngineers&wd=target%28Build%20Tools%2FMSBuild%2FGitHub.one%7CFF6DC598-65EC-43D5-AB29-DB38FEB82BC8%2FMyGet%20Feed%7CFAFC6258-899D-48D4-8DB4-892396202C9C%2F%29 - onenote:https://microsoft.sharepoint.com/teams/toolsforeng/One%20Note/ToolsForSoftwareEngineers/Build%20Tools/MSBuild/GitHub.one#MyGet%20Feed§ion-id={FF6DC598-65EC-43D5-AB29-DB38FEB82BC8}&page-id={FAFC6258-89 - onTimeout: 'reject' + - job: PublicNuGetRelease + displayName: 'Public NuGet release' + dependsOn: PushToNuGet + pool: server + steps: + - task: ManualValidation@0 + displayName: 'Push packages to NuGet' + inputs: + instructions: | + https://microsoft.sharepoint.com/teams/toolsforeng/_layouts/OneNote.aspx?id=%2Fteams%2Ftoolsforeng%2FOne%20Note%2FToolsForSoftwareEngineers&wd=target%28Build%20Tools%2FMSBuild%2FGitHub.one%7CFF6DC598-65EC-43D5-AB29-DB38FEB82BC8%2FMyGet%20Feed%7CFAFC6258-899D-48D4-8DB4-892396202C9C%2F%29 + onenote:https://microsoft.sharepoint.com/teams/toolsforeng/One%20Note/ToolsForSoftwareEngineers/Build%20Tools/MSBuild/GitHub.one#MyGet%20Feed§ion-id={FF6DC598-65EC-43D5-AB29-DB38FEB82BC8}&page-id={FAFC6258-89 + onTimeout: 'reject' From f0602089a8a746b8d8f217c51a72e5fcbb78e22f Mon Sep 17 00:00:00 2001 From: Rainer Sigwald Date: Tue, 13 Jan 2026 08:11:42 -0600 Subject: [PATCH 2/3] Swap to 1ES.PublishNuget Co-authored-by: YuliiaKovalova <95473390+YuliiaKovalova@users.noreply.github.com> --- release-pipeline.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/release-pipeline.yml b/release-pipeline.yml index 5dcd9da..353cb55 100644 --- a/release-pipeline.yml +++ b/release-pipeline.yml @@ -66,15 +66,13 @@ extends: - download: microsoft_MSBuildLocator displayName: 'Download NuGet Package Artifact' artifact: pkg - - task: NuGetCommand@2 + - task: 1ES.PublishNuget@1 displayName: 'NuGet push' inputs: - command: 'push' + packageParentPath: '$(Pipeline.Workspace)' packagesToPush: '$(Pipeline.Workspace)/microsoft_MSBuildLocator/pkg/Microsoft.Build.Locator*.nupkg' nuGetFeedType: 'external' publishFeedCredentials: 'MSBuild-Locator' - verbosityPush: 'Detailed' - - job: PublicNuGetRelease displayName: 'Public NuGet release' dependsOn: PushToNuGet From 94177b9c657c61a7656b80ebaaea68c8dbaccd08 Mon Sep 17 00:00:00 2001 From: Rainer Sigwald Date: Tue, 13 Jan 2026 08:12:06 -0600 Subject: [PATCH 3/3] Remove stale manual-push-to-nuget-and-validate job --- release-pipeline.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/release-pipeline.yml b/release-pipeline.yml index 353cb55..260bf6f 100644 --- a/release-pipeline.yml +++ b/release-pipeline.yml @@ -73,15 +73,3 @@ extends: packagesToPush: '$(Pipeline.Workspace)/microsoft_MSBuildLocator/pkg/Microsoft.Build.Locator*.nupkg' nuGetFeedType: 'external' publishFeedCredentials: 'MSBuild-Locator' - - job: PublicNuGetRelease - displayName: 'Public NuGet release' - dependsOn: PushToNuGet - pool: server - steps: - - task: ManualValidation@0 - displayName: 'Push packages to NuGet' - inputs: - instructions: | - https://microsoft.sharepoint.com/teams/toolsforeng/_layouts/OneNote.aspx?id=%2Fteams%2Ftoolsforeng%2FOne%20Note%2FToolsForSoftwareEngineers&wd=target%28Build%20Tools%2FMSBuild%2FGitHub.one%7CFF6DC598-65EC-43D5-AB29-DB38FEB82BC8%2FMyGet%20Feed%7CFAFC6258-899D-48D4-8DB4-892396202C9C%2F%29 - onenote:https://microsoft.sharepoint.com/teams/toolsforeng/One%20Note/ToolsForSoftwareEngineers/Build%20Tools/MSBuild/GitHub.one#MyGet%20Feed§ion-id={FF6DC598-65EC-43D5-AB29-DB38FEB82BC8}&page-id={FAFC6258-89 - onTimeout: 'reject'