Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 982b27d

Browse files
upd: version number now contains sha of the commit
1 parent ed52535 commit 982b27d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extras/pack.test.release.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/bin/bash
22
TEST_BUILD_NUMBER=$1
33

4+
#Gets the sha of the commit of the current release
5+
GIT_COMMIT=`git log --pretty=format:'%h' -n 1`
6+
47
#Gets current version number and sets next version number
58
VERSION_CURR=$(cat platform.txt | grep version= | head -n 1 | sed s/^.*version=//g)
6-
VERSION=$VERSION_CURR"-"$TEST_BUILD_NUMBER
9+
VERSION=$VERSION_CURR"-"$TEST_BUILD_NUMBER"-"$GIT_COMMIT
710

811
#Gets current platform name and sets next platform name based on next version number
912
PLATFORM_CURR=$(cat platform.txt | grep name= | head -n 1 | sed s/^.*name=//g)

0 commit comments

Comments
 (0)