Skip to content

Instantly share code, notes, and snippets.

@huuphuoc1396
Last active April 28, 2021 01:57
Show Gist options
  • Save huuphuoc1396/e82c1edb675812cbbc82c70c3cd54241 to your computer and use it in GitHub Desktop.
Save huuphuoc1396/e82c1edb675812cbbc82c70c3cd54241 to your computer and use it in GitHub Desktop.
Get build number in Gradle Kotlin DSL
fun getBuildNumber(): String {
val buildNumber = System.getenv()["BUILD_NUMBER"]
return buildNumber ?: ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment