From a2ab48d15fa3cea5b82ddc1338a613eaaf72b514 Mon Sep 17 00:00:00 2001 From: Mark Iantorno Date: Wed, 1 Feb 2023 11:09:11 -0500 Subject: [PATCH] Update release-branch-pipeline.yml for Azure Pipelines --- release-branch-pipeline.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/release-branch-pipeline.yml b/release-branch-pipeline.yml index 0c38b7964..022701bf1 100644 --- a/release-branch-pipeline.yml +++ b/release-branch-pipeline.yml @@ -29,6 +29,18 @@ jobs: - job: get_release_version timeoutInMinutes: 5 steps: + - task: PowerShell@2 + # This task pulls the value from the hapi-fhir project pom.xml file. All modules are released as + # the same version, at the same time, as defined in the root level pom.xml. + inputs: + targetType: 'inline' + script: | + [xml]$pomXml = Get-Content -Path .\pom.xml + # version + Write-Host $pomXml.project.version + $version_from_pom=$pomXml.project.version + Write-Host "##vso[task.setvariable variable=version_from_pom]$version_from_pom" + displayName: Save pom file version to local variable. - task: Bash@3 # Prints out the build version, for debugging purposes inputs: