[release/v7.2] Update and add new NuGet package sources for different environments. by TravisEz13 · Pull Request #24399 · PowerShell/PowerShell · GitHub
Skip to content

[release/v7.2] Update and add new NuGet package sources for different environments.#24399

Closed
TravisEz13 wants to merge 1 commit intoPowerShell:release/v7.2from
TravisEz13:backport-24264-0
Closed

[release/v7.2] Update and add new NuGet package sources for different environments.#24399
TravisEz13 wants to merge 1 commit intoPowerShell:release/v7.2from
TravisEz13:backport-24264-0

Conversation

@TravisEz13
Copy link
Copy Markdown
Member

Backport #24264

This pull request introduces new functions to streamline NuGet configuration management and adds a feature to conditionally generate experimental features. It also updates the NuGet package source in a configuration file.

New functions in build.psm1:

  • Added Switch-PSNugetConfig function to manage NuGet configurations based on the source type (Public or Private). This function includes parameters for user authentication and handles different NuGet package sources accordingly. ([build.psm1R693-R778](https://github.com/PowerShell/PowerShell/pull/24399/files#diff-1eb6991ceacad71a638a32bcf0a4ec906c7ec150f5086732ab6d7702a624914aR693-R778))
  • Added Test-ShouldGenerateExperimentalFeatures function to determine if experimental features should be generated based on the runtime environment and build conditions. ([build.psm1R693-R778](https://github.com/PowerShell/PowerShell/pull/24399/files#diff-1eb6991ceacad71a638a32bcf0a4ec906c7ec150f5086732ab6d7702a624914aR693-R778))

Configuration updates:

  • Updated the NuGet package source in test/tools/Modules/nuget.config to point to a new private feed for PowerShell packages. ([test/tools/Modules/nuget.configL5-R5](https://github.com/PowerShell/PowerShell/pull/24399/files#diff-686074974c03a838500f2ff2eb5e61d23b8b58e3c49b07d69aed33ea7cfae45cL5-R5))

* 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
Copy link
Copy Markdown
Member Author

@TravisEz13 TravisEz13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't look right

@TravisEz13 TravisEz13 closed this Oct 8, 2024
@microsoft-github-policy-service
Copy link
Copy Markdown
Contributor

microsoft-github-policy-service Bot commented Oct 8, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant