Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

build SNAPSHOT version ,Is the logic wrong? #59

Open
zhangwenhao2013 opened this issue Mar 6, 2019 · 1 comment
Open

build SNAPSHOT version ,Is the logic wrong? #59

zhangwenhao2013 opened this issue Mar 6, 2019 · 1 comment

Comments

@zhangwenhao2013
Copy link

def isReleaseBuild() { return VERSION_NAME.contains("SNAPSHOT") == false }

def isReleaseBuild() { return VERSION_NAME.contains("SNAPSHOT") }

@gsprdev
Copy link

gsprdev commented Feb 11, 2020

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants