Skip to content

Commit 11128ca

Browse files
committed
Include travis build number instead of timestamp
1 parent 00e8e4e commit 11128ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

travis-build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ EOL
1717
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then
1818
# if [ "${RELEASE}" = "true" ]; then
1919
echo "Deploying release to Bintray"
20-
NEXT_VERSION="$(gradle properties -q | grep "version:" | grep -v "kotlin_version:" | awk '{print $2}' | tr -d '[:space:]')b$(date +%Y%m%d%H%M)"
20+
# NEXT_VERSION="$(gradle properties -q | grep "version:" | grep -v "kotlin_version:" | awk '{print $2}' | tr -d '[:space:]')b$(date +%Y%m%d%H%M)"
21+
NEXT_VERSION="$(gradle properties -q | grep "version:" | grep -v "kotlin_version:" | awk '{print $2}' | tr -d '[:space:]')b${TRAVIS_BUILD_NUMBER}"
2122
sed -i -E "s/^version(\s)?=.*/version=${NEXT_VERSION}/" gradle.properties
2223
saveGitCredentials
2324
./gradlew clean assemble && ./gradlew check --info && ./gradlew bintrayUpload -x check --info

0 commit comments

Comments
 (0)