diff --git a/.github/workflows/integration-test.yaml b/.github/workflows/integration-test.yaml index 5a08db751..ceb7dec5c 100644 --- a/.github/workflows/integration-test.yaml +++ b/.github/workflows/integration-test.yaml @@ -114,6 +114,11 @@ jobs: env: TEST_OBSERVABILITY_SERVER_AUTH_KEY: ${{ secrets.TEST_OBSERVABILITY_SERVER_AUTH_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TEST_RESULTS_WEB_UI_URL: undefined run: | Scripts/upload_test_results.sh --job-index ${{ strategy.job-index }} + - name: Test Results URL + if: always() + run: | + echo "Test results URL: ${TEST_RESULTS_WEB_UI_URL}" diff --git a/Scripts/upload_test_results.sh b/Scripts/upload_test_results.sh index 8171fcfba..b202a67bd 100755 --- a/Scripts/upload_test_results.sh +++ b/Scripts/upload_test_results.sh @@ -317,5 +317,5 @@ echo 2>&1 # Print a newline to separate the `curl` output from the next log line # 11. Extract the ID of the created upload and log the web UI URL. upload_id=$(jq --exit-status --raw-output '.id' < "${temp_response_body_file}") -web_ui_url="${upload_server_base_url}/repos/${GITHUB_REPOSITORY}/uploads/${upload_id}" -echo "Test results uploaded successfully: ${web_ui_url}" +$TEST_RESULTS_WEB_UI_URL="${upload_server_base_url}/repos/${GITHUB_REPOSITORY}/uploads/${upload_id}" +echo "Test results uploaded successfully: ${TEST_RESULTS_WEB_UI_URL}"