File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 4848 - ${{ parameters.powershellExecutable }} : |
4949 $modulePath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'TempModules'
5050 Write-Verbose -Verbose "Install Microsoft.PowerShell.PSResourceGet to temp module path"
51- Save-Module -Name Microsoft.PowerShell.PSResourceGet -RequiredVersion "1.1.0-preview2" -Path $modulePath -AllowPrerelease -Force
51+ Save-Module -Name Microsoft.PowerShell.PSResourceGet -RequiredVersion "1.1.0-preview2" -Path $modulePath -AllowPrerelease -Force -Verbose
5252 Write-Verbose -Verbose "Install Pester 4.X to temp module path"
5353 Save-Module -Name "Pester" -MaximumVersion 4.99 -Path $modulePath -Force
5454 displayName: Install Microsoft.PowerShell.PSResourceGet and Pester
5959 Write-Verbose -Verbose "Importing build utilities (buildtools.psd1)"
6060 Import-Module -Name (Join-Path -Path '${{ parameters.buildDirectory }}' -ChildPath 'buildtools.psd1') -Force
6161 #
62- Install-ModulePackageForTest -PackagePath "$(System.ArtifactsDirectory)"
62+ Install-ModulePackageForTest -PackagePath "$(System.ArtifactsDirectory)" -ErrorAction stop -Verbose
6363 displayName: Install module for test from downloaded artifact
6464 workingDirectory: ${{ parameters.buildDirectory }}
6565
Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ function Install-ModulePackageForTest {
120120 }
121121
122122 Write-Verbose - Verbose - Message " Installing module $ ( $config.ModuleName ) to build output path $installationPath "
123+ $psgetVersion = (get-command save-psresource ).Module.ModuleBase
124+ Write-Verbose - Verbose - Message " Version of PSResourceGet imported: $psgetVersion "
123125 Save-PSResource - Name $config.ModuleName - Repository $localRepoName - Path $installationPath - SkipDependencyCheck - Prerelease - Confirm:$false - TrustRepository
124126
125127 Write-Verbose - Verbose - Message " Unregistering local package repo: $localRepoName "
You can’t perform that action at this time.
0 commit comments