We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 391510e commit fefafb2Copy full SHA for fefafb2
1 file changed
.azure-pipelines/ci-build.yml
@@ -118,8 +118,10 @@ extends:
118
condition: not(contains(variables['build.sourceBranch'], 'refs/tags/v'))
119
120
- pwsh: |
121
- $pomXml = [xml](Get-Content pom.xml)
122
- $version = $pomXml.project.version
+ $pomXml = [xml](Get-Content pom.xml -Raw)
+ $ns = New-Object System.Xml.XmlNamespaceManager($pomXml.NameTable)
123
+ $ns.AddNamespace('m', $pomXml.DocumentElement.NamespaceURI)
124
+ $version = $pomXml.SelectSingleNode('/m:project/m:version', $ns).InnerText
125
$snapshot_suffix = if ($Env:BRANCH_NAME.StartsWith('refs/tags/v')) { '' } else { '-SNAPSHOT' }
126
# If version already contains -SNAPSHOT and we're on a tag, strip it
127
if ($Env:BRANCH_NAME.StartsWith('refs/tags/v')) {
0 commit comments