diff --git a/.buildkite/load-testing.yml b/.buildkite/load-testing.yml index 2217dcd6e0..5d63bde951 100644 --- a/.buildkite/load-testing.yml +++ b/.buildkite/load-testing.yml @@ -3,7 +3,8 @@ steps: # https://badge.buildkite.com/docs/agent/v3/cli-env command: | result=$(.ci/load/scripts/start.sh) - echo $result - # buildkite-agent env set "SESSION_TOKEN=${result}" + buildkite-agent env set "SESSION_TOKEN=${result:?}" + env: + ORCH_URL: "https://obs-load-orch.app.elstc.co'" artifact_paths: - ".ci/load/**" diff --git a/.ci/load/scripts/start.sh b/.ci/load/scripts/start.sh index 4b7d704578..fb25182343 100755 --- a/.ci/load/scripts/start.sh +++ b/.ci/load/scripts/start.sh @@ -17,6 +17,8 @@ # specific language governing permissions and limitations # under the License. +set -euo pipefail + curl -s -X POST -H "Content-Type: application/json" -d \ "{\"app_token\": \""$APP_TOKEN"\", \ \"service\": \"application\", \