diff --git a/eng/pipelines/templates/BuildAndTest.yml b/eng/pipelines/templates/BuildAndTest.yml index 81a9ee5d2a4..3f91c2d24f5 100644 --- a/eng/pipelines/templates/BuildAndTest.yml +++ b/eng/pipelines/templates/BuildAndTest.yml @@ -43,6 +43,14 @@ steps: /bl:${{ parameters.repoLogPath }}/restore2.binlog displayName: Restore solution + # Temporarily pre-build the TypeScript bundle as a workaround to make the build more reliable. + - pwsh: | + cd $(Build.SourcesDirectory)/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript + npm install + node html-report/reset-devdata.js + npm run build + displayName: Pre-Build TypeScript Bundle + - script: ${{ parameters.buildScript }} -build -configuration ${{ parameters.buildConfig }} @@ -119,5 +127,6 @@ steps: -warnAsError 1 /bl:${{ parameters.repoLogPath }}/pack.binlog /p:Restore=false /p:Build=false + /p:EnableEvaluationReportBuild=true $(_OfficialBuildIdArgs) displayName: Pack, sign, and publish