Skip to content

Commit 3cb9905

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
Change installing modules for testing to use AzArtifacts feed
1 parent dc78c0c commit 3cb9905

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

build.ps1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,18 +352,23 @@ if (!$Clippy -and !$SkipBuild) {
352352
if ($Test) {
353353
$failed = $false
354354

355+
if ($null -eq (Get-PSResourceRepository -Name CFS -ErrorAction Ignore)) {
356+
"Registering CFS repository"
357+
Register-PSResourceRepository -uri 'https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2' -Name CFS -Trusted
358+
}
359+
355360
if ($IsWindows) {
356361
# PSDesiredStateConfiguration module is needed for Microsoft.Windows/WindowsPowerShell adapter
357362
$FullyQualifiedName = @{ModuleName="PSDesiredStateConfiguration";ModuleVersion="2.0.7"}
358363
if (-not(Get-Module -ListAvailable -FullyQualifiedName $FullyQualifiedName))
359364
{ "Installing module PSDesiredStateConfiguration 2.0.7"
360-
Install-PSResource -Name PSDesiredStateConfiguration -Version 2.0.7 -Repository PSGallery -TrustRepository
365+
Install-PSResource -Name PSDesiredStateConfiguration -Version 2.0.7 -Repository CFS
361366
}
362367
}
363368

364369
if (-not(Get-Module -ListAvailable -Name Pester))
365370
{ "Installing module Pester"
366-
Install-PSResource Pester -WarningAction Ignore -Repository PSGallery -TrustRepository
371+
Install-PSResource Pester -WarningAction Ignore -Repository CFS
367372
}
368373

369374
foreach ($project in $projects) {

dsc/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)