From 0554b56b0c4e6b3a82846db3ff2048b9bb7781c2 Mon Sep 17 00:00:00 2001 From: Stefanos Kornilios Mitsis Poiitidis Date: Sat, 14 Jul 2018 19:29:16 +0200 Subject: [PATCH] Travis: try to use right build #, take 2 --- shell/android-studio/app/build.gradle | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/shell/android-studio/app/build.gradle b/shell/android-studio/app/build.gradle index a1a182b82..3aae870bb 100644 --- a/shell/android-studio/app/build.gradle +++ b/shell/android-studio/app/build.gradle @@ -2,12 +2,8 @@ apply plugin: 'com.android.application' apply plugin: 'com.github.triplet.play' def getVersionCode = { -> - def stdout = new ByteArrayOutputStream() - exec { - commandLine 'git', 'rev-list', '--count', '1c16baeb0eae1bfc31d83ed78cb78d37f11184df..HEAD' - standardOutput = stdout - } - return Integer.parseInt(stdout.toString().trim()) + def build_id = System.getenv("TRAVIS_JOB_ID") ?: "8" + return Integer.parseInt( build_id ) } def getVersionName = { ->