More version work
This commit is contained in:
parent
c0f2e31b97
commit
7d15a7a8f9
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
|
|
||||||
import java.net.URLEncoder
|
// import java.net.URLEncoder
|
||||||
|
|
||||||
Map call(Map config = [:]) {
|
Map call(Map config = [:]) {
|
||||||
Map defaults = [
|
Map defaults = [
|
||||||
@ -9,12 +9,14 @@ Map call(Map config = [:]) {
|
|||||||
queryParams: [
|
queryParams: [
|
||||||
'repository': 'tools',
|
'repository': 'tools',
|
||||||
'sort': 'name',
|
'sort': 'name',
|
||||||
'name': 'test.something'
|
'name': 'tests/test-something*'
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
Map runConfig = defaults + config
|
Map runConfig = defaults + config
|
||||||
|
|
||||||
nexusSearch = buildUrlWithQueryParams(runConfig.nexusBase, runConfig.queryParams)
|
nexusURL = runConfig.nexusBase + '/' + runConfig.searchAPI
|
||||||
|
|
||||||
|
nexusSearch = buildUrlWithQueryParams(nexusURL, runConfig.queryParams)
|
||||||
|
|
||||||
runConfig.nexusQuery = nexusSearch
|
runConfig.nexusQuery = nexusSearch
|
||||||
return runConfig
|
return runConfig
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user