blob: 47356fc4cceb40e5eda57d725da7991d9a0c659c [file] [log] [blame]
[
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd",
"-ensure-file",
"@Subdir repo\nfuchsia/third_party/repo version:1.13.2",
"-max-threads",
"0",
"-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"
},
{
"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:deadbeef",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.cipd search fuchsia/third_party/fastboot/${platform} git_revision:deadbeef",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": [@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@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_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [],
"name": "cipd.Package is up-to-date",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"name": "$result"
}
]