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 48
48
- ${{ parameters.powershellExecutable }} : |
49
49
$modulePath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'TempModules'
50
50
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
52
52
Write-Verbose -Verbose "Install Pester 4.X to temp module path"
53
53
Save-Module -Name "Pester" -MaximumVersion 4.99 -Path $modulePath -Force
54
54
displayName: Install Microsoft.PowerShell.PSResourceGet and Pester
59
59
Write-Verbose -Verbose "Importing build utilities (buildtools.psd1)"
60
60
Import-Module -Name (Join-Path -Path '${{ parameters.buildDirectory }}' -ChildPath 'buildtools.psd1') -Force
61
61
#
62
- Install-ModulePackageForTest -PackagePath "$(System.ArtifactsDirectory)"
62
+ Install-ModulePackageForTest -PackagePath "$(System.ArtifactsDirectory)" -ErrorAction stop -Verbose
63
63
displayName: Install module for test from downloaded artifact
64
64
workingDirectory: ${{ parameters.buildDirectory }}
65
65
Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ function Install-ModulePackageForTest {
120
120
}
121
121
122
122
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 "
123
125
Save-PSResource - Name $config.ModuleName - Repository $localRepoName - Path $installationPath - SkipDependencyCheck - Prerelease - Confirm:$false - TrustRepository
124
126
125
127
Write-Verbose - Verbose - Message " Unregistering local package repo: $localRepoName "
You can’t perform that action at this time.
0 commit comments