[resultdb] add --resultdb and --realm to the args for triggered tasks

https://crrev.com/c/2407021 added --resultdb to swarming.py.
This CL adds --resultdb and --realm, if a given SwarmingTaskRequest
was set with resultdb and realm.

R=jwata@google.com,tikuta@chromium.org
CC=chanli@chromium.org,nodir@chromium.org,vadimsh@chromium.org

Bug: 1017288
Change-Id: I1ad66f4daa47ca9ac60aaad7e8d110209b78df0c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/2407562
Commit-Queue: Scott Lee <ddoman@chromium.org>
Reviewed-by: Junji Watanabe <jwata@google.com>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
27 files changed
tree: a52fb4e945d18ef1c8142bd29808ede1d868af7e
  1. infra/
  2. recipes/
  3. scripts/
  4. site_config/
  5. third_party/
  6. .gitattributes
  7. .gitignore
  8. .style.yapf
  9. .vpython
  10. .yapfignore
  11. codereview.settings
  12. CROS_OWNERS
  13. DEPS
  14. environment.cfg.py
  15. LICENSE
  16. OWNERS
  17. PRESUBMIT.py
  18. README.md
  19. WATCHLISTS
README.md

Recipes

If you're here to make a change to ‘recipes’ (the code located in scripts/slave/recipes*), please take a look at the README for more information pertaining to recipes.

Style

The preferred style is PEP8 with two-space indent; that is, the Chromium Python style. Functions use lowercase_with_underscores, with the exception of the special functions RunSteps and RunTests in recipes. Use yapf (git cl format --no-clang-format) to autoformat new code.