Skip to content

Commit c42e8fe

Browse files
committed
Fixed upload of test result file
1 parent 524f901 commit c42e8fe

File tree

2 files changed

+35
-32
lines changed

2 files changed

+35
-32
lines changed

ConfluencePS.build.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,12 +262,13 @@ task Test Init, {
262262
}
263263
$testResults = Invoke-Pester @parameter
264264

265+
Write-Host (Get-Childitem $env:BHProjectPath)
265266
Assert-True ($testResults.FailedCount -eq 0) "$($testResults.FailedCount) Pester test(s) failed."
266267
}
267268
catch {
268269
throw $_
269270
}
270-
}, RemoveTestResults, { Init }
271+
}, { Init }
271272
#endregion
272273

273274
#region Publish

azure-pipelines.yml

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -129,37 +129,39 @@ phases:
129129
condition: succeededOrFailed()
130130

131131

132-
- phase: Phase_5
133-
displayName: Test Module on Windows (PS Core)
134-
135-
dependsOn: Phase_1
136-
condition: succeeded()
137-
queue:
138-
name: Hosted VS2017
139-
140-
steps:
141-
- task: DownloadBuildArtifacts@0
142-
displayName: 'Download Build Artifacts'
143-
inputs:
144-
artifactName: Release
145-
downloadPath: '$(Build.SourcesDirectory)'
146-
147-
- powershell: |
148-
. ./Tools/setup.ps1
149-
Invoke-Build -Task ShowInfo
150-
pwsh: true
151-
displayName: Setup
152-
153-
- powershell: 'Invoke-Build -Task Test'
154-
pwsh: true
155-
displayName: Test
156-
157-
- task: PublishTestResults@2
158-
displayName: 'Publish Test Results **/Test-*.xml'
159-
inputs:
160-
testRunner: NUnit
161-
testResultsFiles: '**/Test-*.xml'
162-
condition: succeededOrFailed()
132+
# Waiting for the agent to support pwsh:
133+
# https://github.com/Microsoft/azure-pipelines-image-generation/issues/232
134+
# - phase: Phase_5
135+
# displayName: Test Module on Windows (PSv6)
136+
137+
# dependsOn: Phase_1
138+
# condition: succeeded()
139+
# queue:
140+
# name: Hosted VS2017
141+
142+
# steps:
143+
# - task: DownloadBuildArtifacts@0
144+
# displayName: 'Download Build Artifacts'
145+
# inputs:
146+
# artifactName: Release
147+
# downloadPath: '$(Build.SourcesDirectory)'
148+
149+
# - powershell: |
150+
# . ./Tools/setup.ps1
151+
# Invoke-Build -Task ShowInfo
152+
# displayName: Setup
153+
# pwsh: true
154+
155+
# - powershell: 'Invoke-Build -Task Test'
156+
# displayName: Test
157+
# pwsh: true
158+
159+
# - task: PublishTestResults@2
160+
# displayName: 'Publish Test Results **/Test-*.xml'
161+
# inputs:
162+
# testRunner: NUnit
163+
# testResultsFiles: '**/Test*.xml'
164+
# condition: succeededOrFailed()
163165

164166
- phase: Phase_6
165167
displayName: Test Module against Cloud Server

0 commit comments

Comments
 (0)