Skip to content

Commit 1104966

Browse files
fix: add script to compute version in CI server based on latest tag
1 parent 9787c9d commit 1104966

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.teamcity/compute-version.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
TAG_VERSION=`git describe --abbrev=0 $BUILD_VCS_NUMBER --tags`
4+
GIT_HASH_SHORT=${BUILD_VCS_NUMBER:0:7}
5+
6+
echo "##teamcity[buildNumber '$TAG_VERSION-$GIT_HASH_SHORT.$BUILD_NUMBER']"
7+
8+
exit 0

0 commit comments

Comments
 (0)