File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
4546fi
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
765766elif [ " OL6-UEK" = " $KERNEL_TYPE " ]; then
You can’t perform that action at this time.
0 commit comments