Refactor git_metadata step and yaml config. Add machine_setup and
branch support.

This adds the implementation of the machine setup step.
Implements directory location and branch support for git clone.
Refactors git_metadata step to be test driven.
Adds tests for git_metadata step.
Combines multiple yaml steps into one step for prebuild.

Tested: I ran unit tests with pytest to test for function behaviors
of git_metadata step. All test cases passed.

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

openbmc cloudbuild ci