Fix variable names

This commit is contained in:
Jim Nicholson 2024-02-08 20:11:48 -08:00
parent 42b4fa73e2
commit d0073f3c4e
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,9 @@
"CompileStatic": {
"enabled": false
},
"DuplicateNumberLiteral": {
"enabled": false
},
"DuplicateStringLiteral": {
"enabled": false
},

View File

@ -37,11 +37,12 @@ Map call(Map config = [:], Map queryParams = [:]) {
assets = readJSON text: body
latest = assets.items.last()
version = latest.version
build = 0
buildNumFromQuery = '1'
if ((latest.version ?: null) == null) {
matches = (latest.name =~ /.*-([0-9\.]+)-([0-9]+)\.)[0]/)[0]
version = matches[1]
buildNumFromQuery = matches[2]
build = matches[2]
}
runConfig.nexusQuery = nexusSearch
runConfig.latestVersion = version