Push symbols to symweb and public server

This commit is contained in:
Amaury Levé 2022-12-27 14:15:44 +01:00
Родитель 0680ad8b12
Коммит 4752e4c703
1 изменённых файлов: 19 добавлений и 4 удалений

Просмотреть файл

@ -180,6 +180,7 @@ stages:
displayName: 'Publish failed Artifacts folder'
inputs:
targetPath: artifacts
artifact: 'MSTest Fail $(System.JobAttempt)'
condition: failed()
- task: NuGetAuthenticate@0
@ -221,11 +222,25 @@ stages:
Write-Host "Renamed" + $OldName + "to" + $NewName
}
- task: PublishBuildArtifacts@1
displayName: 'Publish Symbols Artifact'
- task: ms-vscs-artifact.build-tasks.artifactSymbolTask-1.artifactSymbolTask@0
displayName: 'Publish Symbols to Artifact Services (symweb)'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/symbols'
ArtifactName: Symbols
symbolServiceURI: 'https://microsoft.artifacts.visualstudio.com/DefaultCollection'
requestName: '$(system.teamProject)/$(Build.DefinitionName)/$(Build.BuildNumber)/$(System.JobAttempt)'
sourcePath: '$(Build.ArtifactStagingDirectory)/symbols'
expirationInDays: 3654
usePat: false
append: false
- task: ms-vscs-artifact.build-tasks.artifactSymbolTask-1.artifactSymbolTask@0
displayName: 'Publish Symbols to Artifact Services (public)'
inputs:
symbolServiceURI: 'https://microsoftpublicsymbols.artifacts.visualstudio.com/DefaultCollection'
requestName: '$(system.teamProject)/$(Build.DefinitionName)/$(Build.BuildNumber)/$(System.JobAttempt)'
sourcePath: '$(Build.ArtifactStagingDirectory)/symbols'
expirationInDays: 3654
usePat: false
append: false
- ${{ if eq(variables._RunAsInternal, True) }}:
- template: /eng/common/templates/job/onelocbuild.yml