Skip to content

Commit 1a5bf33

Browse files
committed
added variables in pipeline
1 parent b7d923a commit 1a5bf33

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

eng/pipelines/dummy-release-pipeline.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)