From 3995ec44e2d78699fad177590178dfee9094cf83 Mon Sep 17 00:00:00 2001 From: dotasek Date: Wed, 1 Feb 2023 12:38:44 -0500 Subject: [PATCH] Set even correcter version for artifact publish --- release-branch-pipeline.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/release-branch-pipeline.yml b/release-branch-pipeline.yml index a0b861410..733e37e72 100644 --- a/release-branch-pipeline.yml +++ b/release-branch-pipeline.yml @@ -39,7 +39,7 @@ jobs: # version Write-Host $pomXml.project.version $version_from_pom=$pomXml.project.version - Write-Host "##vso[task.setvariable variable=version_from_pom]$version_from_pom" + Write-Host "##vso[task.setvariable variable=version_from_pom;isOutput=true;]$version_from_pom" displayName: Save pom file version to local variable. - task: Bash@3 # Prints out the build version, for debugging purposes @@ -124,6 +124,8 @@ jobs: - job: publish_build_artifacts timeoutInMinutes: 5 dependsOn: ['buildaroni'] + variables: + version_from_pom: $[ dependencies.buildaroni.outputs['setVariable.version_from_pom'] ] steps: # Publishes the built Validator jar to build artifacts. Primarily for testing and debugging builds. - task: PublishPipelineArtifact@1