Skip to content

Commit 7c5cce4

Browse files
committed
put commit short sha as build version on nightlies
1 parent 1800215 commit 7c5cce4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cSploit/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ android {
5353
targetSdkVersion 22
5454
versionCode 1
5555
versionName "1.6.0-rc.1"
56+
if(System.getenv("NIGHTLY_BUILD")) {
57+
versionName += "+" + System.getenv("NIGHTLY_BUILD_COMMIT").substring(0, 7)
58+
}
5659
}
5760

5861
lintOptions {

nightly-build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ if [ -n "${PREVIOUS_COMMIT}" -a "${PREVIOUS_COMMIT}" == "${LAST_COMMIT}" ]; then
6363
exit 0
6464
fi
6565

66+
export NIGHTLY_BUILD_COMMIT=$LAST_COMMIT
67+
6668
echo -n -e "${CYAN}Building cSploit...${RESET}\n" | tee >(cat - >&3)
6769
rm -f $(find . -name "cSploit-release.apk" -type f)
6870
oldpwd=$(pwd)

0 commit comments

Comments
 (0)