From 8267bfa99258e51b96a58f80db968d1e0a31485a Mon Sep 17 00:00:00 2001 From: yoshifuminakamura Date: Wed, 17 Sep 2025 10:44:35 +0900 Subject: [PATCH] Make the URL including the protocol a CI/CD variable --- scripts/send_results.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/send_results.sh b/scripts/send_results.sh index 2e7c438..6371826 100644 --- a/scripts/send_results.sh +++ b/scripts/send_results.sh @@ -12,10 +12,10 @@ for json_file in results/result*.json; do echo "Processing $json_file" cat "$json_file" - echo "Posting $json_file to http://${RESULT_SERVER}/write-api" + echo "Posting $json_file to ${RESULT_SERVER}/write-api" # Post JSON and capture response - response=$(curl --fail -sS -X POST "http://${RESULT_SERVER}/write-api" \ + response=$(curl --fail -sS -X POST "${RESULT_SERVER}/write-api" \ -H "X-API-Key: ${RESULT_SERVER_KEY}" \ -H "Content-Type: application/json" \ --data-binary @"$json_file") @@ -54,7 +54,7 @@ for json_file in results/result*.json; do # Upload TGZ if it exists if [[ -f "$tgz_file" ]]; then echo "Uploading $tgz_file with UUID $uuid" - curl --fail -sS -X POST "http://${RESULT_SERVER}/upload-tgz" \ + curl --fail -sS -X POST "${RESULT_SERVER}/upload-tgz" \ -H "X-API-Key: ${RESULT_SERVER_KEY}" \ -F "id=${uuid}" \ -F "timestamp=${timestamp}" \