| [ |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[START_DIR]/cipd", |
| "-ensure-file", |
| "@Subdir repo\nfuchsia/third_party/repo version:1.13.2", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "name": "ensure_installed", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"repo\": [@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-version:1.13.2--\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/third_party/repo\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@ ]@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[START_DIR]/android/src" |
| ], |
| "infra_step": true, |
| "name": "ensure source directory" |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd/repo/repo", |
| "init", |
| "-u", |
| "https://android.googlesource.com/platform/manifest", |
| "-b", |
| "platform-tools-29.0.4" |
| ], |
| "cwd": "[START_DIR]/android/src", |
| "name": "repo init" |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd/repo/repo", |
| "sync", |
| "-j8" |
| ], |
| "cwd": "[START_DIR]/android/src", |
| "name": "repo sync" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "remote.aosp.url" |
| ], |
| "cwd": "[START_DIR]/android/src/system/core/fastboot", |
| "name": "git config" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "rev-parse", |
| "HEAD" |
| ], |
| "cwd": "[START_DIR]/android/src/system/core/fastboot", |
| "name": "git rev-parse" |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/android/src/build/soong/soong_ui.bash", |
| "--make-mode", |
| "[CLEANUP]/fastboot_tmp_1/out/host/linux-x86/bin/fastboot" |
| ], |
| "cwd": "[START_DIR]/android/src", |
| "env": { |
| "OUT_DIR": "[CLEANUP]/fastboot_tmp_1/out" |
| }, |
| "name": "build fastboot" |
| }, |
| { |
| "cmd": [], |
| "name": "cipd", |
| "~followup_annotations": [ |
| "@@@SET_BUILD_PROPERTY@instance_id@\"40-chars-fake-of-the-package-instance_id\"@@@", |
| "@@@SET_BUILD_PROPERTY@package@\"fuchsia/third_party/fastboot/resolved-platform\"@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "pkg-build", |
| "-pkg-def", |
| "{\"data\": [{\"file\": \"fastboot\"}, {\"version_file\": \".versions/fastboot.cipd_version\"}], \"install_mode\": \"copy\", \"package\": \"fuchsia/third_party/fastboot/${platform}\", \"root\": \"[CLEANUP]/fastboot_tmp_1/out/host/linux-x86/bin\"}", |
| "-out", |
| "[CLEANUP]/fastboot.cipd", |
| "-hash-algo", |
| "sha256", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "name": "cipd.build fuchsia/third_party/fastboot/${platform}", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/third_party/fastboot/resolved-platform\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "search", |
| "fuchsia/third_party/fastboot/${platform}", |
| "-tag", |
| "git_revision:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "name": "cipd.cipd search fuchsia/third_party/fastboot/${platform} git_revision:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"result\": []@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "pkg-register", |
| "[CLEANUP]/fastboot.cipd", |
| "-ref", |
| "latest", |
| "-tag", |
| "git_branch:platform-tools-29.0.4", |
| "-tag", |
| "git_repository:https//fuchsia.googlesource.com/fuchsia", |
| "-tag", |
| "git_revision:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "name": "cipd.register fuchsia/third_party/fastboot/${platform}", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/third_party/fastboot/resolved-platform\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@", |
| "@@@STEP_LINK@fuchsia/third_party/fastboot/resolved-platform@https://chrome-infra-packages.appspot.com/p/fuchsia/third_party/fastboot/resolved-platform/+/40-chars-fake-of-the-package-instance_id@@@" |
| ] |
| }, |
| { |
| "name": "$result" |
| } |
| ] |