File tree Expand file tree Collapse file tree 2 files changed +10
-19
lines changed
build-tools/automation/yaml-templates Expand file tree Collapse file tree 2 files changed +10
-19
lines changed Original file line number Diff line number Diff line change 24
24
testResultsFiles : ${{ parameters.testResultsFiles }}
25
25
failTaskOnFailedTests : true
26
26
testRunTitle : ${{ parameters.testName }}
27
- condition : succeededOrFailed()
27
+ condition : succeededOrFailed()
Original file line number Diff line number Diff line change @@ -3,24 +3,15 @@ parameters:
3
3
4
4
steps :
5
5
- powershell : |
6
- $artifactDir = [System.IO.Path]::Combine(${{ parameters.artifactDirectory }}, "*")
7
-
8
- if ([Environment]::OSVersion.Platform -eq "Unix")
9
- {
10
- $installer = Get-ChildItem -Path $artifactDir -Include *.pkg -File
11
- if (![System.IO.File]::Exists($installer)) {
12
- throw [System.IO.FileNotFoundException] "$installer not found."
13
- }
14
- Write-Host "##vso[task.setvariable variable=XA.Provisionator.Args]$installer"
15
- }
16
- else
17
- {
18
- $installer = Get-ChildItem -Path $artifactDir -Include *.vsix -File
19
- if (![System.IO.File]::Exists($installer)) {
20
- throw [System.IO.FileNotFoundException] "$installer not found."
21
- }
22
- Write-Host "##vso[task.setvariable variable=XA.Provisionator.Args]$installer"
23
- }
6
+ if ([Environment]::OSVersion.Platform -eq "Unix") {
7
+ $installer = Get-ChildItem -Path "${{ parameters.artifactDirectory }}/*" -Include *.pkg -File
8
+ } else {
9
+ $installer = Get-ChildItem -Path "${{ parameters.artifactDirectory }}\*" -Include *.vsix -File
10
+ }
11
+ if (![System.IO.File]::Exists($installer)) {
12
+ throw [System.IO.FileNotFoundException] "Installer not found in $artifactDirectory."
13
+ }
14
+ Write-Host "##vso[task.setvariable variable=XA.Provisionator.Args]$installer"
24
15
displayName : find installer and set provisionator variable
25
16
26
17
- task : provisionator@2
You can’t perform that action at this time.
0 commit comments