Refactor machine_setup step and add gsutil_setup step.

This refactors machine_setup to be test driven.
Adds the gsutil_setup step that creates the sstate-cache and the
sources mirror URL directories.
Adds support to decide between sstate-cache or clean build.
Adds unit tests for machine_setup and gsutil_setup.

Tested: I ran unit tests with pytest to test for function behaviors
of all the prebuild classes. All test cases passed. Performed manual
end-to-end tests on GCB with sstate-cache, all test cases passed.

Signed-off-by: Simon-Lii <thesimonli@google.com>
Change-Id: I392e100119e002af6b2c49a9e074066eb1bbfe5b
8 files changed
tree: d5f01f697a8e517725cd70527f8169dd6bcf4e41
  1. steps/
  2. unit_tests/
  3. cloudbuild.yaml
  4. prebuild.py
  5. Python.gitignore
  6. readme.md
readme.md

openbmc cloudbuild ci