Skip to content

Commit 1f12be2

Browse files
fixed the apache JMeter task
1 parent 6f72a0b commit 1f12be2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Tasks/RunJMeterLoadTest/Start-ApacheJMeterTest.ps1

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,10 @@ function UploadSummaryMdReport($summaryMdPath)
270270
{
271271
Write-Verbose "Summary Markdown Path = $summaryMdPath"
272272

273-
if (Test-Path($summaryMdPath))
273+
if (($env:SYSTEM_HOSTTYPE -eq "build") -and (Test-Path($summaryMdPath)))
274274
{
275275
Write-Host "##vso[task.addattachment type=Distributedtask.Core.Summary;name=Load test results;]$summaryMdPath"
276276
}
277-
else
278-
{
279-
Write-Warning "Could not find the summary report file $summaryMdPath"
280-
}
281277
}
282278

283279
function GetLastSuccessfulBuild($headers)

0 commit comments

Comments
 (0)