Don't assume that gardener rotations have consoles set

Other projects may want to have gardener rotations defined for the
purposes of monitoring but not need the separate consoles for gardened
builders. This updates the ci library to check if the console fields are
non-empty before trying to create a console entry, which will allow
projects to define a gardener rotation that doesn't add builders to
consoles.

Change-Id: I43484fcbac64272be777f81a4bf3a53f9e1c7732
Reviewed-on: https://chromium-review.googlesource.com/c/infra/chromium/+/7239429
Commit-Queue: Struan Shrimpton <[email protected]>
Reviewed-by: Struan Shrimpton <[email protected]>
Auto-Submit: Garrett Beaty <[email protected]>
1 file changed
tree: 432c993a5bd710b21a4a37e81bbab23d8604306d
  1. infra/
  2. starlark-libs/
  3. .style.yapf
  4. OWNERS
  5. PRESUBMIT.py