We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fedc2ef commit e1d53bfCopy full SHA for e1d53bf
ci/templates/build-data.yml
@@ -2,7 +2,7 @@ steps:
2
- script: |
3
env | sort
4
java -version
5
- VERSION=$(cat build.gradle | sed -n "s/version =.*'\(.*\)\(-SNAPSHOT\)\?'/\1/p")
+ VERSION=$(./gradlew -q printVersionName | head -n 1 | cut -d'-' -f1)
6
VERSION=${VERSION// }
7
echo Current version in code is :${VERSION}:
8
echo "##vso[task.setvariable variable=PACKAGE_VERSION;isOutput=true]${VERSION}"
0 commit comments