File tree 1 file changed +10
-2
lines changed
tools/releaseBuild/azureDevOps/templates
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 76
76
displayName: Install packaging tools
77
77
78
78
- powershell : |
79
- $zipPath = Get-Item '$(System.ArtifactsDirectory)\Symbols\results\*$(PkgFilter).zip'
80
- Write-Verbose -Verbose "Zip Path: $zipPath"
79
+ $zipPathString = '$(System.ArtifactsDirectory)\Symbols\results\*$(PkgFilter).zip'
80
+ Write-Verbose -Verbose "Zip Path: $zipPathString"
81
+ $zipPath = Get-Item $zipPathString
82
+ if(@($zipPath).Count -eq 0) {
83
+ throw "No files found at '$zipPathString'"
84
+ }
85
+ elseif(@($zipPath).Count -ne 1) {
86
+ $names = $zipPath.Name -join "', '"
87
+ throw "multiple files '${names}' found with '${zipPathString}'"
88
+ }
81
89
82
90
$expandedFolder = $zipPath.BaseName
83
91
Write-Host "sending.. vso[task.setvariable variable=SymbolsFolder]$expandedFolder"
You ca
10FC
n’t perform that action at this time.
0 commit comments