Skip to content

Commit e1d53bf

Browse files
jt-ntimbwhite
authored andcommitted
Remove -SNAPSHOT from package version variable
Docker image was being published with an incorrect version of amd64-2.0.0-SNAPSHOT-stable Signed-off-by: James Taylor <[email protected]>
1 parent fedc2ef commit e1d53bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/templates/build-data.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ steps:
22
- script: |
33
env | sort
44
java -version
5-
VERSION=$(cat build.gradle | sed -n "s/version =.*'\(.*\)\(-SNAPSHOT\)\?'/\1/p")
5+
VERSION=$(./gradlew -q printVersionName | head -n 1 | cut -d'-' -f1)
66
VERSION=${VERSION// }
77
echo Current version in code is :${VERSION}:
88
echo "##vso[task.setvariable variable=PACKAGE_VERSION;isOutput=true]${VERSION}"

0 commit comments

Comments
 (0)