From 6b220e3b912d67631b75faf66c0d8e5512abbf81 Mon Sep 17 00:00:00 2001 From: beierlm Date: Fri, 4 Feb 2022 11:14:33 -0500 Subject: [PATCH] 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: beierlm (cherry picked from commit 499b442f67119589220a1ff144e3b26a9b7714ed) --- jenkins/ci-pipelines/ci_helper.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jenkins/ci-pipelines/ci_helper.groovy b/jenkins/ci-pipelines/ci_helper.groovy index f3430764..c920f46b 100644 --- a/jenkins/ci-pipelines/ci_helper.groovy +++ b/jenkins/ci-pipelines/ci_helper.groovy @@ -29,12 +29,13 @@ def get_archive(artifactory_server, mdg, branch, build_name, build_number, patte "files": [ { "target": "./", - "pattern": "${repo_prefix}${mdg}/${branch}/${build_number}/${pattern}", - "build": "${build_name}/${build_number}" + "pattern": "${repo_prefix}${mdg}/${branch}/${build_number}/${pattern}" } ] }""" + println("Searching Artifactory with ${downloadSpec}") + def results = server.download(downloadSpec) // Save the list of URLs that we need to pass to the dockerfiles for build def debian_packages = [] -- 2.25.1