-
Notifications
You must be signed in to change notification settings - Fork 8k
Update pipeline to use CFS when using Install-Module #25123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the explanation for all the Uninstall-AzureRm calls?
| Get-PackageProvider -Name NuGet -ForceBootstrap | ||
| Install-Module -Name Az.Storage -Verbose -Force -AllowClobber | ||
| ./tools/installPSResource.ps1 -PSRepository CFS | ||
| Uninstall-AzureRm -Verbose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we confirmed we still need to run Uninstall-AzureRm, and specifically after installing Az.Accounts and Az.Storage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TravisEz13 Can you explain why we need to do this?
Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
Co-authored-by: Andy Jordan <2226434+andyleejordan@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know the other PR is what did this, and this is just backporting, but can I say I love seeing a PR that deletes 100+ lines of code from a pipeline? 🥳
|
📣 Hey @@jshigetomi, how did we do? We would love to hear your feedback with the link below! 🗣️ 🔗 https://aka.ms/PSRepoFeedback |
PR Summary
This pull request includes several updates to the pipeline configuration files and the addition of a new script for installing PowerShell resources. The main changes focus on updating the installation method for PowerShell modules and modifying the source of a coordinated build pipeline.
Changes to installation methods:
.pipelines/templates/checkAzureContainer.yml: Replaced inline PowerShell commands with./tools/installPSResource.ps1script for installing PowerShell modules..pipelines/templates/compliance/apiscan.yml: Replaced inline PowerShell commands with./tools/installPSResource.ps1script for installing PowerShell modules..pipelines/templates/compliance/generateNotice.yml: Replaced inline PowerShell commands with./tools/installPSResource.ps1script for installing PowerShell modules..pipelines/templates/release-MakeBlobPublic.yml,.pipelines/templates/release-create-msix.yml,.pipelines/templates/release-upload-buildinfo.yml,.pipelines/templates/release-validate-packagenames.yml,.pipelines/templates/uploadToAzure.yml: Replaced inline PowerShell commands with./tools/installPSResource.ps1script for installing PowerShell modules. [1] [2] [3] [4] [5] [6]Changes to build pipeline source:
.pipelines/PowerShell-Packages-Official.yml: Updated the source of the coordinated build pipeline from 'PowerShell-Coordinated Packages-Official' to 'PowerShell-Coordinated Binaries-Official'.Addition of new script:
tools/installPSResources.ps1: Added a new script for installing PowerShell resources from specified repositories, including handling for a specific repository bug.PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.- [ ] Issue filed:
(which runs in a different PS Host).