Skip to content

Commit e8c2f60

Browse files
fix: Updates version number reference
1 parent 685e5e9 commit e8c2f60

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build/azDevOps/azure/azure-pipelines-javaspring-k8s.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ variables:
9090
value: 0
9191
- name: version_patch
9292
value: 0
93+
- name: version_number
94+
value: $(version_major).$(version_minor).$(version_patch)
9395

9496
# PR / Branch vars
9597
- name: source_branch_ref
@@ -813,8 +815,8 @@ stages:
813815
script: |
814816
git config user.name "BuildService"
815817
git config user.email "builder@${COMPANY}.com"
816-
git tag -a v${BUILD_BUILDNUMBER} -m "Release created by Azure DevOps"
817-
git push origin v${BUILD_BUILDNUMBER}
818+
git tag -a v${VERSION_NUMBER} -m "Release created by Azure DevOps"
819+
git push origin v${VERSION_NUMBER}
818820
env:
819821
COMPANY: $(company)
820822

@@ -824,4 +826,4 @@ stages:
824826
inputs:
825827
gitHubConnection: $(github_release_service_connection)
826828
repositoryName: $(github_org)/$(self_repo)
827-
tag: $(Build.BuildNumber)
829+
tag: $(version_number)

0 commit comments

Comments
 (0)