Update release-branch-pipeline.yml for Azure Pipelines
This commit is contained in:
parent
5cad1a8f33
commit
f06d7cdbc1
|
@ -39,14 +39,14 @@ jobs:
|
||||||
# version
|
# version
|
||||||
Write-Host $pomXml.project.version
|
Write-Host $pomXml.project.version
|
||||||
$VERSION=$pomXml.project.version
|
$VERSION=$pomXml.project.version
|
||||||
Write-Host "##vso[task.setvariable variable=version_from_pom;]$VERSION"
|
Write-Host "##vso[task.setvariable variable=version_from_pom;isOutput=true;]$VERSION"
|
||||||
displayName: Save pom file version to local variable.
|
displayName: Save pom file version to local variable.
|
||||||
- task: Bash@3
|
- task: Bash@3
|
||||||
# Prints out the build version, for debugging purposes
|
# Prints out the build version, for debugging purposes
|
||||||
inputs:
|
inputs:
|
||||||
targetType: 'inline'
|
targetType: 'inline'
|
||||||
script: |
|
script: |
|
||||||
echo Pulled version from pom.xml => $(version_from_pom)
|
echo Pulled version from pom.xml => $(VERSION)
|
||||||
displayName: Debug print release version
|
displayName: Debug print release version
|
||||||
- task: Bash@3
|
- task: Bash@3
|
||||||
# Azure pipelines cannot pass variables between pipelines, but it can pass files, so we
|
# Azure pipelines cannot pass variables between pipelines, but it can pass files, so we
|
||||||
|
@ -57,7 +57,7 @@ jobs:
|
||||||
script: |
|
script: |
|
||||||
echo $(version_from_pom)
|
echo $(version_from_pom)
|
||||||
VERSION=$(version_from_pom)
|
VERSION=$(version_from_pom)
|
||||||
echo "$VERSION" > $(System.DefaultWorkingDirectory)/VERSION
|
echo "$VERSION" > $(System.DefaultWorkingDirectory)/VERSION)
|
||||||
displayName: Save Release Version to File
|
displayName: Save Release Version to File
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
# Copies the VERSION file containing the build id (ex: 1.1.13-SNAPSHOT) to the staging directory
|
# Copies the VERSION file containing the build id (ex: 1.1.13-SNAPSHOT) to the staging directory
|
||||||
|
|
Loading…
Reference in New Issue