[release/v7.2] Fixes to Azure Public feed usage#24403
Merged
TravisEz13 merged 2 commits intoPowerShell:release/v7.2from Oct 10, 2024
Merged
[release/v7.2] Fixes to Azure Public feed usage#24403TravisEz13 merged 2 commits intoPowerShell:release/v7.2from
TravisEz13 merged 2 commits intoPowerShell:release/v7.2from
Conversation
* Fix code PATs * Fix feed PATs * remove gallery commit * update feed url * Update to new variable groups * Fix Variable name * Fix credential template * Disable Signing setup in prep stage * Capture nuget source list * lock down the firewall * Add creds to feed switch to allow single switch location * Use switch from build.psm1 * Use switch template instead of commands * update to test feed * disable codeql in jobs where we don't compile * disable code sign validation for prep * move capture steps to restore phase to see if it speeds things up * remove duplicate capture of nuget config * update test service * Only build windows test service on windows * warn when no config is generated * try to fix test service * fix web listener refs * try removing dotnet tool * update feedname with user info * update package version that is not found * try moving failing jobs to restore phase * allow nuget inset in either phase * update package ref * use the right reporoot * Move everything to restore * Try adding build phase * put nuget files in the right place * move bootstrap into yaml * remove onebranch agent items from macos build * switch to environment variable * bump a couple of packages * fix formatting * Fix static analysis issue * update feed url to test restoring everything * install the AzFeed cred provider * fix binlog issues
TravisEz13
commented
Oct 8, 2024
nuget.config
Outdated
| <packageSources> | ||
| <clear /> | ||
| <add key="powershell" value="https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v3/index.json" /> | ||
| <add key="powershell" value="https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell-dotnet-9/nuget/v3/index.json" /> |
Member
Author
There was a problem hiding this comment.
We should use the normal feed
adityapatwardhan
approved these changes
Oct 8, 2024
Contributor
|
📣 Hey @TravisEz13, how did we do? We would love to hear your feedback with the link below! 🗣️ 🔗 https://aka.ms/PSRepoFeedback |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport #24149
This pull request includes various updates to the PowerShell pipeline configurations, primarily focusing on improving the build and restore processes, and enhancing the configuration management. The most important changes include the addition of new variables, reorganization of group references, and updates to the
build.psm1script to support new features.Pipeline Configuration Updates:
.pipelines/PowerShell-Coordinated_Packages-Official.yml: Added new groups and variables, includingENABLE_MSBUILD_BINLOGSandfeatureFlagsfor Linux and Windows host versions..pipelines/PowerShell-Packages-Official.yml: Addedmscodehub-feed-read-generalgroup..pipelines/templates/insert-nuget-config-azfeed.yml: Addedob_restore_phaseparameter and included steps for installing Azure Artifacts Credential Provider..pipelines/templates/nupkg.yml: Replaced inline NuGet configuration steps with a template reference toinsert-nuget-config-azfeed.yml.Build Script Enhancements:
build.psm1: Added support forENABLE_MSBUILD_BINLOGSin theRestore-PSPackagefunction, including logic to handle MSBuild binary logs during restore failures. [1] [2]build.psm1: UpdatedSwitch-PSNugetConfigfunction to include mandatory parametersUserNameandClearTextPATfor private sources, and addedClear-PipelineNugetAuthenticationandSet-PipelineNugetAuthenticationcalls.These changes aim to streamline the build process, improve configuration management, and enhance logging and diagnostic capabilities.