From 7bdf2dfec95f13f053bc016cb767be9257da744c Mon Sep 17 00:00:00 2001 From: Noah Gilson Date: Thu, 10 Oct 2024 13:16:47 -0700 Subject: [PATCH] Try to pass var into another job since we cant have a template in the jobs --- pipeline-templates/package-vsix.yaml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pipeline-templates/package-vsix.yaml b/pipeline-templates/package-vsix.yaml index 0ba4f0ed..35593a73 100644 --- a/pipeline-templates/package-vsix.yaml +++ b/pipeline-templates/package-vsix.yaml @@ -77,10 +77,13 @@ jobs: Contents: '**\*.binlog' TargetFolder: '$(Build.ArtifactStagingDirectory)' flattenFolders: false - - ${{ if eq(parameters.useOneEngineeringPool, 'true') }}: - - template: publish.yaml - parameters: - pool: ${{ parameters.pool }} - SignType: ${{ parameters.SignType }} - version: $(GetVersion.version) - useOneEngineeringPool: true \ No newline at end of file +- ${{ if eq(parameters.useOneEngineeringPool, 'true') }}: + - template: publish.yaml + dependsOn: ${{ parameters.pool.os }}_Package + variables: + version: $[ dependencies.${{ parameters.pool.os }}_Package.outputs['GetVersion.version']] + parameters: + pool: ${{ parameters.pool }} + SignType: ${{ parameters.SignType }} + version: $(version) + useOneEngineeringPool: true \ No newline at end of file