report.sh 545 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. curl \
  3. -X POST \
  4. --fail-with-body \
  5. -H "Authorization: Token token=\"$BUILDKITE_ANALYTICS_TOKEN\"" \
  6. -F "data=@junit.xml" \
  7. -F "format=junit" \
  8. -F "run_env[CI]=buildkite" \
  9. -F "run_env[key]=$GITHUB_RUN_ID" \
  10. -F "run_env[number]=$GITHUB_RUN_NUMBER-$GITHUB_RUN_ATTEMPT" \
  11. -F "run_env[job_id]=$GITHUB_RUN_ID" \
  12. -F "run_env[branch]=$GITHUB_REF" \
  13. -F "run_env[commit_sha]=$GITHUB_SHA" \
  14. -F "run_env[message]=Foo" \
  15. -F "run_env[url]=$GITHUB_SERVER_URL" \
  16. https://analytics-api.buildkite.com/v1/uploads