From 68f8f7229bdb068798d46bef50644707be0c665c Mon Sep 17 00:00:00 2001 From: ReilleyMilne Date: Mon, 29 Jun 2026 11:05:22 -0700 Subject: [PATCH] Add upload-llm-artifacts common template step + pipelineArtifact output --- eng/pipelines/templates/jobs/ci.tests.yml | 9 +++++++++ eng/pipelines/templates/steps/build-test.yml | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index e64687eac48c..0969aacf8413 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -73,6 +73,15 @@ jobs: image: $(OSVmImage) os: ${{ parameters.OSName }} + templateContext: + # See eng/common/pipelines/templates/steps/upload-llm-artifacts.yml for corresponding file copy step + outputs: + - output: pipelineArtifact + targetPath: '$(Build.ArtifactStagingDirectory)/llm-artifacts' + artifactName: "LLM Artifacts - $(System.JobName) - $(System.JobAttempt)" + condition: eq(variables['uploadLlmArtifacts'], 'true') + sbomEnabled: false + variables: - template: ../variables/globals.yml - name: InjectedPackages diff --git a/eng/pipelines/templates/steps/build-test.yml b/eng/pipelines/templates/steps/build-test.yml index fe3fdfe61305..6597389cd56d 100644 --- a/eng/pipelines/templates/steps/build-test.yml +++ b/eng/pipelines/templates/steps/build-test.yml @@ -186,6 +186,11 @@ steps: testRunTitle: '${{ parameters.ServiceDirectory }} ${{ parameters.CloudName }} $(Agent.JobName)' failTaskOnFailedTests: true + - template: /eng/common/pipelines/templates/steps/upload-llm-artifacts.yml + parameters: + TestResultsGlob: '*test*.xml' + SearchFolder: '$(Build.SourcesDirectory)/sdk' + - task: PublishCodeCoverageResults@2 displayName: 'Publish Code Coverage to DevOps' continueOnError: true