From e610fe47d231158c5c29ac91572ca7b054fc7e87 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Mon, 8 Mar 2021 11:49:34 -0800 Subject: [PATCH 1/2] Disable running markdown link verification in release build CI --- .vsts-ci/misc-analysis.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.vsts-ci/misc-analysis.yml b/.vsts-ci/misc-analysis.yml index c068a1e7295..21b0b2258a6 100644 --- a/.vsts-ci/misc-analysis.yml +++ b/.vsts-ci/misc-analysis.yml @@ -90,18 +90,19 @@ jobs: condition: succeededOrFailed() workingDirectory: '$(repoPath)' - - pwsh: | - Import-module ./build.psm1 - $path = Join-Path -Path $pwd -ChildPath './commonTestResults.xml' - $results = invoke-pester -Script ./test/common -OutputFile $path -OutputFormat NUnitXml -PassThru - Write-Host "##vso[results.publish type=NUnit;mergeResults=true;runTitle=Common Tests;publishRunAttachments=true;resultFiles=$path;]" - if($results.TotalCount -eq 0 -or $results.FailedCount -gt 0) - { - throw "Markdown tests failed" - } - displayName: Run Common Tests - condition: succeededOrFailed() - workingDirectory: '$(repoPath)' + - ${{ if not(contains('SYSTEM_COLLECTIONURI','mscodehub')) }} + - pwsh: | + Import-module ./build.psm1 + $path = Join-Path -Path $pwd -ChildPath './commonTestResults.xml' + $results = invoke-pester -Script ./test/common -OutputFile $path -OutputFormat NUnitXml -PassThru + Write-Host "##vso[results.publish type=NUnit;mergeResults=true;runTitle=Common Tests;publishRunAttachments=true;resultFiles=$path;]" + if($results.TotalCount -eq 0 -or $results.FailedCount -gt 0) + { + throw "Markdown tests failed" + } + displayName: Run Common Tests + condition: succeededOrFailed() + workingDirectory: '$(repoPath)' - template: dailyBuildCompliance.yml@ComplianceRepo parameters: From c3f864862e9a7393cab89e4bf379c213061ee972 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Mon, 8 Mar 2021 12:06:12 -0800 Subject: [PATCH 2/2] Fix typo in condition --- .vsts-ci/misc-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vsts-ci/misc-analysis.yml b/.vsts-ci/misc-analysis.yml index 21b0b2258a6..a3b9aa88215 100644 --- a/.vsts-ci/misc-analysis.yml +++ b/.vsts-ci/misc-analysis.yml @@ -90,7 +90,7 @@ jobs: condition: succeededOrFailed() workingDirectory: '$(repoPath)' - - ${{ if not(contains('SYSTEM_COLLECTIONURI','mscodehub')) }} + - ${{ if not(contains('SYSTEM_COLLECTIONURI','mscodehub')) }}: - pwsh: | Import-module ./build.psm1 $path = Join-Path -Path $pwd -ChildPath './commonTestResults.xml'