Skip to content
Snippets Groups Projects
Commit 6b220e3b authored by Mark Beierl's avatar Mark Beierl
Browse files

Bug 1879 Speed up Artifactory search


The addition of the build parameter to the Artifactory search results
in what would appear to be a full index scan, taking over 2 minutes
to complete.  With this change, we still get the exact artifact
we need, however the search completes in less than 1 second.

Fixes Bug 1879

Change-Id: Ibe5987e06cac39e3651b9dbec61993c0cfb567b8
Signed-off-by: default avatarbeierlm <mark.beierl@canonical.com>
(cherry picked from commit 499b442f)
parent 80c15c90
No related branches found
No related tags found
No related merge requests found
...@@ -29,12 +29,13 @@ def get_archive(artifactory_server, mdg, branch, build_name, build_number, patte ...@@ -29,12 +29,13 @@ def get_archive(artifactory_server, mdg, branch, build_name, build_number, patte
"files": [ "files": [
{ {
"target": "./", "target": "./",
"pattern": "${repo_prefix}${mdg}/${branch}/${build_number}/${pattern}", "pattern": "${repo_prefix}${mdg}/${branch}/${build_number}/${pattern}"
"build": "${build_name}/${build_number}"
} }
] ]
}""" }"""
println("Searching Artifactory with ${downloadSpec}")
def results = server.download(downloadSpec) def results = server.download(downloadSpec)
// Save the list of URLs that we need to pass to the dockerfiles for build // Save the list of URLs that we need to pass to the dockerfiles for build
def debian_packages = [] def debian_packages = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment