JFrog Speedup 92/12792/1
authorMark Beierl <mark.beierl@canonical.com>
Thu, 15 Dec 2022 19:29:21 +0000 (14:29 -0500)
committerMark Beierl <mark.beierl@canonical.com>
Thu, 15 Dec 2022 19:29:21 +0000 (14:29 -0500)
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 <mark.beierl@canonical.com>
tools/gen-repo.sh

index a7cf904..f5f586e 100755 (executable)
@@ -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 location>'"
 
-$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)\""