From: Mark Beierl Date: Thu, 15 Dec 2022 19:29:21 +0000 (-0500) Subject: JFrog Speedup X-Git-Tag: release-v14.0-start~123 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F12792%2F1;p=osm%2Fdevops.git 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 --- 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)\""