groovy considered harmful

This commit is contained in:
gamma-delta 2022-04-16 15:58:45 -05:00
parent 0d1a372f65
commit bc63dc2940

View file

@ -56,7 +56,7 @@ def isRelease = { ->
}
}
if (!isRelease && System.getenv('BUILD_NUMBER') != null) {
if (!isRelease() && System.getenv('BUILD_NUMBER') != null) {
version += "-prerelease-" + System.getenv('BUILD_NUMBER')
} else if (System.getenv('TAG_NAME') != null) {
version = System.getenv('TAG_NAME').substring(1)