mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-16 10:45:15 +01:00
fix branch name on travis
This commit is contained in:
parent
98edf635ce
commit
e7b80a2a2f
@ -11,7 +11,8 @@ group = "com.github.creeper123123321.viafabric"
|
||||
val gitVersion: groovy.lang.Closure<String> by extra
|
||||
val versionDetails: groovy.lang.Closure<com.palantir.gradle.gitversion.VersionDetails> by extra
|
||||
version = "0.2.5-SNAPSHOT+" + try {
|
||||
gitVersion() + "-" + versionDetails().branchName
|
||||
val travisBranch: String? = System.getenv("TRAVIS_BRANCH") // version details doesn't work on travis
|
||||
gitVersion() + "-" + if (travisBranch.isNullOrBlank()) versionDetails().branchName else travisBranch
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
"unknown"
|
||||
|
Loading…
Reference in New Issue
Block a user