From 684c0316e34bb9752ba3a0b2bb315fc3c4969526 Mon Sep 17 00:00:00 2001 From: Peter Bajurny Date: Thu, 2 Dec 2021 17:13:55 -0600 Subject: [PATCH 1/2] Update build-module.yml --- PSModules/stages/build-module.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PSModules/stages/build-module.yml b/PSModules/stages/build-module.yml index 5189573..0f2d6c3 100644 --- a/PSModules/stages/build-module.yml +++ b/PSModules/stages/build-module.yml @@ -15,7 +15,7 @@ stages: # Apparently, Install-Script isn't good enough except on Windows? # Install-Script Install-RequiredModule -Force -Verbose Save-Script Install-RequiredModule -Path '$(Pipeline.Workspace)' - &"$(Pipeline.Workspace)/Install-RequiredModule" -Path '$(Build.SourcesDirectory)/RequiredModules.psd1' -Confirm:$false -Verbose + &"$(Pipeline.Workspace)/Install-RequiredModule" -Path '$(Build.SourcesDirectory)/RequiredModules.psd1' -Confirm:$false -Verbose -TrustRegisteredRepositories foreach ($installErr in $IRM_InstallErrors) { Write-Warning "ERROR: $installErr" Write-Warning "STACKTRACE: $($installErr.ScriptStackTrace)" From 9e89d2c7afcfbc59ca79f8bafd2079539df385bb Mon Sep 17 00:00:00 2001 From: Peter Bajurny Date: Thu, 2 Dec 2021 17:30:09 -0600 Subject: [PATCH 2/2] Update test-module.yml --- PSModules/stages/test-module.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PSModules/stages/test-module.yml b/PSModules/stages/test-module.yml index 2183bf3..ee21c2e 100644 --- a/PSModules/stages/test-module.yml +++ b/PSModules/stages/test-module.yml @@ -15,7 +15,7 @@ stages: # Apparently, Install-Script isn't good enough except on Windows? # Install-Script Install-RequiredModule -Force -Verbose Save-Script Install-RequiredModule -Path '$(Pipeline.Workspace)' - &"$(Pipeline.Workspace)/Install-RequiredModule" -Path '$(Build.SourcesDirectory)/RequiredModules.psd1' -Confirm:$false -Verbose + &"$(Pipeline.Workspace)/Install-RequiredModule" -Path '$(Build.SourcesDirectory)/RequiredModules.psd1' -Confirm:$false -Verbose -TrustRegisteredRepositories foreach ($installErr in $IRM_InstallErrors) { Write-Warning "ERROR: $installErr" Write-Warning "STACKTRACE: $($installErr.ScriptStackTrace)"