@@ -32,7 +32,11 @@ extends:
3232 pool :
3333 type : ' windows'
3434 displayName : ' Publish Symbols - Windows'
35- # Strategy matrix to build all combinations
35+
36+ # OneBranch required variables must be at job level
37+ variables :
38+ ob_outputDirectory : ' $(Build.SourcesDirectory)\out'
39+ ob_artifactBaseName : ' mssql-python-symbols'
3640
3741 steps :
3842 - task : UsePythonVersion@0
@@ -57,21 +61,16 @@ extends:
5761 dir /s /b
5862 displayName: 'Generate symbols for mssql-python package'
5963
60- # Copy the generated symbols to the staging folder for artifacts
64+ # Copy the generated symbols to OneBranch output directory
6165 - task : CopyFiles@2
6266 inputs :
6367 SourceFolder : ' $(Build.SourcesDirectory)\mssql_python'
6468 Contents : ' **\*.pdb'
65- TargetFolder : ' $(Build.ArtifactStagingDirectory)\mssql-python- symbols'
66- displayName : ' Copy symbols to staging folder '
69+ TargetFolder : ' $(ob_outputDirectory)\ symbols'
70+ displayName : ' Copy symbols to OneBranch output directory '
6771
68- # Publish the symbols (only pdbs) as an artifact
69- - task : PublishBuildArtifacts@1
70- displayName : ' Publish symbols as build artifact'
71- inputs :
72- PathtoPublish : ' $(Build.ArtifactStagingDirectory)\mssql-python-symbols'
73- ArtifactName : ' mssql-python-symbols'
74- publishLocation : ' Container'
72+ # OneBranch will automatically upload artifacts from ob_outputDirectory
73+ # No need for PublishBuildArtifacts task
7574
7675 - powershell : ' Write-Host "##vso[task.setvariable variable=ArtifactServices.Symbol.AccountName;]SqlClientDrivers"'
7776 displayName : ' Update Symbol.AccountName with SqlClientDrivers'
0 commit comments