Open zhangwenhao2013 opened 5 years ago
No. If the version name has a "SNAPSHOT" suffix it is, by definition, not a "release" build.
def isReleaseBuild() { return VERSION_NAME.contains("SNAPSHOT") == false }
determines whether SNAPSHOT
is absent from the version name. The logic is correct.
def isReleaseBuild() { return VERSION_NAME.contains("SNAPSHOT") == false }
def isReleaseBuild() { return VERSION_NAME.contains("SNAPSHOT") }