Retry curl downloads in google-bazel-presubmit pipeline step (#3039)

The `:pipeline:` step in `google-bazel-presubmit` can fail with `base64:
invalid input` when `curl` receives a transient HTTP error (such as 404
or 5xx) from `bazel.googlesource.com` (example:
https://buildkite.com/bazel/google-bazel-presubmit/builds/114281#01a1f365-79f9-44e6-95b7-8bd77aac7c51).

Changes:
- Add `-f --retry 5 --retry-all-errors` to both `curl` calls
(`bazelci.py` and `.bazelci/presubmit.yml`).
- Use `mkdir -p .bazelci`.
- Download `presubmit.yml` to `.bazelci/presubmit.yml.b64` before
decoding with `base64 -d`, so a failed `curl` does not pipe into
`base64` under `/bin/sh` (which has no `pipefail`).
1 file changed