From a59243090a7c71732c1d7e681c2aeffe9e10c8ec Mon Sep 17 00:00:00 2001 From: Tiago Koji Castro Shibata Date: Thu, 5 Mar 2020 22:32:18 -0800 Subject: [PATCH] Publish release symbols (#3152) * Publish release symbols * Publish symbols if IsReleaseBuild --- .../azure-pipelines/templates/win-ci-2019.yml | 16 ++++++++++++---- .../azure-pipelines/templates/win-ci-arm.yml | 17 ++++++++++++----- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/tools/ci_build/github/azure-pipelines/templates/win-ci-2019.yml b/tools/ci_build/github/azure-pipelines/templates/win-ci-2019.yml index edebf88cdd..cb3f88361c 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-ci-2019.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-ci-2019.yml @@ -46,9 +46,9 @@ jobs: env: TELEMETRYGUID: $(TELEMETRYGUID) - task: UsePythonVersion@0 - inputs: - versionSpec: '3.7' - addToPath: true + inputs: + versionSpec: '3.7' + addToPath: true architecture: ${{ parameters.BuildArch }} - task: BatchScript@1 @@ -59,7 +59,7 @@ jobs: workingFolder: '$(Build.BinariesDirectory)' - script: | - python -m pip install -q pyopenssl setuptools wheel numpy + python -m pip install -q pyopenssl setuptools wheel numpy workingDirectory: '$(Build.BinariesDirectory)' displayName: 'Install python modules' @@ -188,6 +188,14 @@ jobs: artifactName: ${{ parameters.ArtifactName }} targetPath: '$(Build.ArtifactStagingDirectory)' + - task: PublishSymbols@2 + displayName: 'Publish Build Symbols' + condition: eq(variables['IsReleaseBuild'], 'true') + inputs: + symbolsFolder: '$(Build.BinariesDirectory)\RelWithDebInfo\RelWithDebInfo' + searchPattern: '**/*.pdb' + symbolServerType: teamServices + # Compliance tasks require logs from Debug Build - ${{ if eq(parameters['DoCompliance'], 'true') }}: - template: compliance.yml diff --git a/tools/ci_build/github/azure-pipelines/templates/win-ci-arm.yml b/tools/ci_build/github/azure-pipelines/templates/win-ci-arm.yml index d6d614c0cc..da4c6b91a6 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-ci-arm.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-ci-arm.yml @@ -58,13 +58,13 @@ jobs: modifyEnvironment: true - task: UsePythonVersion@0 - inputs: - versionSpec: '3.7' - addToPath: true + inputs: + versionSpec: '3.7' + addToPath: true architecture: x64 - script: | - python -m pip install -q pyopenssl setuptools wheel numpy + python -m pip install -q pyopenssl setuptools wheel numpy workingDirectory: '$(Build.BinariesDirectory)' displayName: 'Install python modules' @@ -112,9 +112,16 @@ jobs: artifactName: ${{ parameters.ArtifactName }} targetPath: '$(Build.ArtifactStagingDirectory)' + - task: PublishSymbols@2 + displayName: 'Publish Build Symbols' + condition: eq(variables['IsReleaseBuild'], 'true') + inputs: + symbolsFolder: '$(Build.BinariesDirectory)\RelWithDebInfo\RelWithDebInfo' + searchPattern: '**/*.pdb' + symbolServerType: teamServices + - template: component-governance-component-detection-steps.yml parameters : condition : 'succeeded' - template: clean-agent-build-directory-step.yml -