Last active
April 28, 2021 01:57
-
-
Save huuphuoc1396/e82c1edb675812cbbc82c70c3cd54241 to your computer and use it in GitHub Desktop.
Get build number in Gradle Kotlin DSL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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