未验证 提交 70675777 编写于 作者: T Tomáš Matoušek 提交者: GitHub

Copy ServiceHub logs to log dir after running integration tests (#41232)

上级 6a26fbc5
......@@ -428,6 +428,11 @@ function TestUsingOptimizedRunner() {
if ($testIOperation) {
Remove-Item env:\ROSLYN_TEST_IOPERATION
}
if ($testVsi) {
Write-Host "Copying ServiceHub logs to $LogDir"
Copy-Item -Path (Join-Path $TempDir "servicehub\logs") -Destination (Join-Path $LogDir "servicehub") -Recurse
}
}
}
......@@ -622,7 +627,9 @@ try {
}
catch
{
echo "##vso[task.logissue type=error](NETCORE_ENGINEERING_TELEMETRY=Build) Build failed"
if ($ci) {
echo "##vso[task.logissue type=error](NETCORE_ENGINEERING_TELEMETRY=Build) Build failed"
}
throw $_
}
......@@ -642,7 +649,9 @@ try {
}
catch
{
echo "##vso[task.logissue type=error](NETCORE_ENGINEERING_TELEMETRY=Test) Tests failed"
if ($ci) {
echo "##vso[task.logissue type=error](NETCORE_ENGINEERING_TELEMETRY=Test) Tests failed"
}
throw $_
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册