Modify b to upload metrics on exit.

Currently, failed invocations are lost due to the --skip-metrics-upload
flag

Bug: 279986859
Test: b nothing (with an intentional bp2build failure)
Test: b nothing (bazel error)
Test: b build libcore:all (no error)
Change-Id: I1f501602369c03f2414bb98ccaf392b2b22ac375
1 file changed
tree: e6c59c0a0cfc2e89e29f364725304fb7b7a95996
  1. api_surfaces/
  2. bin/
  3. ci/
  4. compliance/
  5. docs/
  6. examples/
  7. flags/
  8. json_module_graph/
  9. mk2rbc/
  10. mkcompare/
  11. platforms/
  12. product_config/
  13. product_variables/
  14. rules/
  15. scripts/
  16. tests/
  17. vendor/
  18. .gitignore
  19. bazel.BUILD
  20. bazel.WORKSPACE
  21. buildifier_hook.sh
  22. common.bazelrc
  23. constants_exported_to_soong.bzl
  24. darwin.bazelrc
  25. linux.bazelrc
  26. OWNERS
  27. PREUPLOAD.cfg
  28. README.md
README.md

Bazel

The code in this directory is experimental. Bazel support for Android Platform is undergoing active development and workflow stability is currently not guaranteed.