Android: Use tags in `git describe`
This commit is contained in:
parent
405fffedaa
commit
b628be0936
|
@ -44,6 +44,7 @@ install:
|
|||
- test -z "$encrypted_c726d225a9d9_key" || mv debug.keystore ~/.android/debug.keystore
|
||||
before_script:
|
||||
script:
|
||||
- git fetch --unshallow
|
||||
- cd shell/android-studio
|
||||
- export NUMBER_OF_PROCESSORS=2
|
||||
- "./gradlew build"
|
||||
|
|
|
@ -9,7 +9,7 @@ def getVersionCode = { ->
|
|||
def getVersionName = { ->
|
||||
def stdout = new ByteArrayOutputStream()
|
||||
exec {
|
||||
commandLine 'git', 'describe', '--always'
|
||||
commandLine 'git', 'describe', '--tags', '--always'
|
||||
standardOutput = stdout
|
||||
}
|
||||
return stdout.toString().trim()
|
||||
|
|
Loading…
Reference in New Issue