Skip to content

Commit ee6b0c5

Browse files
authored
Pass in artifactory server to build script (#1458)
1 parent 061874d commit ee6b0c5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/build-probe-binaries

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ if [ $# -ge 4 ]; then
4141

4242
if [ "RHEL" = "$KERNEL_TYPE" ]; then
4343
INTERNAL_ARTIFACTORY_API_KEY=$5
44+
INTERNAL_ARTIFACTORY_SERVER=$6
4445
fi
4546
fi
4647

@@ -752,14 +753,14 @@ elif [ "RHEL" = "$KERNEL_TYPE" ]; then
752753
echo Building RHEL from Stored Sources
753754

754755
# We're using aql to query for all of the objects in the repo
755-
JSON_RESULT=$(curl -H 'Content-Type: text/plain' -H "X-JFrog-Art-Api:$INTERNAL_ARTIFACTORY_API_KEY" -X POST -d 'items.find({"repo":"redhat-sources"})' https://artifactory.internal.sysdig.com/artifactory/api/search/aql)
756+
JSON_RESULT=$(curl -H 'Content-Type: text/plain' -H "X-JFrog-Art-Api:$INTERNAL_ARTIFACTORY_API_KEY" -X POST -d 'items.find({"repo":"redhat-sources"})' https://$INTERNAL_ARTIFACTORY_SERVER/artifactory/api/search/aql)
756757

757758
# Use jq to parse the json to get the rpms
758-
URLS=$(echo "$JSON_RESULT"| jq -r '.results[].name as $o | $o | select(endswith(".rpm")) | "https://artifactory.internal.sysdig.com/artifactory/redhat-sources/" + $o')
759+
URLS=$(echo "$JSON_RESULT"| jq -r '.results[].name as $o | $o | select(endswith(".rpm")) | $o')
759760

760761
for URL in $URLS
761762
do
762-
rhel_build $URL $INTERNAL_ARTIFACTORY_API_KEY
763+
rhel_build https://$INTERNAL_ARTIFACTORY_SERVER/artifactory/redhat-sources/$URL $INTERNAL_ARTIFACTORY_API_KEY
763764
done
764765

765766
elif [ "OL6-UEK" = "$KERNEL_TYPE" ]; then

0 commit comments

Comments
 (0)