From 47eb90105d5c1cf58b539b50018a80d19420568d Mon Sep 17 00:00:00 2001 From: Mark Beierl Date: Thu, 15 Dec 2022 14:29:21 -0500 Subject: [PATCH] JFrog Speedup The current method of downloading artifacts for the daily repo generation is to use a 'build :: build number' style search. It turns out this is actually not effective as it performs a full artifactory scan to get content. Instead if we directly ask for the content from the path, the files we want are downloaded very quickly and no load is placed on the artifactory server. Change-Id: I1095b784dee73782d3104f301c977a7d958cce00 Signed-off-by: Mark Beierl --- tools/gen-repo.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/gen-repo.sh b/tools/gen-repo.sh index a7cf904c..f5f586e2 100755 --- a/tools/gen-repo.sh +++ b/tools/gen-repo.sh @@ -122,8 +122,7 @@ dump_vars [ -x $JFROG_CLI ] || FATAL "jfrog cli not found. Please install https://www.jfrog.com/getcli/ and use option '-j '" -$JFROG_CLI rt download --build "$BUILD" osm-release || FATAL "Failed to download" - +$JFROG_CLI rt download "osm-release/$BUILD_NUMBER/*" || FATAL "Failed to download" [ $PASSPHRASE_FILE ] && GPG_PASSPHRASE="--pinentry-mode=loopback --passphrase \"$(cat $PASSPHRASE_FILE)\"" -- 2.25.1