blob: 693626842739df692fbea65331123de567779cb8 [file] [log] [blame] [edit]
[
{
"cmd": [
"touch",
"[CLEANUP]/tar-example_tmp_1/a"
],
"name": "touch a"
},
{
"cmd": [
"touch",
"[CLEANUP]/tar-example_tmp_1/b"
],
"name": "touch b"
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0o777",
"[CLEANUP]/tar-example_tmp_1/sub/dir"
],
"infra_step": true,
"name": "mkdirs"
},
{
"cmd": [
"touch",
"[CLEANUP]/tar-example_tmp_1/sub/dir/c"
],
"name": "touch c"
},
{
"cmd": [],
"name": "install fuchsia/tools/bsdtar"
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0o777",
"[START_DIR]/cipd_tool/fuchsia/tools/bsdtar/52b14bf3d8a0f805133bcb8677059decc65268e139074f6d4f2fccb11fe0e174"
],
"infra_step": true,
"name": "install fuchsia/tools/bsdtar.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd_tool/fuchsia/tools/bsdtar/52b14bf3d8a0f805133bcb8677059decc65268e139074f6d4f2fccb11fe0e174",
"-ensure-file",
"fuchsia/tools/bsdtar/${platform} git_revision:6462ccda48c8f33dce4c80c2f1533263277d4da9",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "install fuchsia/tools/bsdtar.ensure_installed",
"~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@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-git_revision:646\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/tools/bsdtar/resolved-platform\"@@@",
"@@@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": [
"[START_DIR]/cipd_tool/fuchsia/tools/bsdtar/52b14bf3d8a0f805133bcb8677059decc65268e139074f6d4f2fccb11fe0e174/bsdtar",
"--create",
"-f",
"[CLEANUP]/tar-example_tmp_1/more.tar.gz",
"--gzip",
"-C",
"[CLEANUP]/tar-example_tmp_1",
"a",
"b",
"-C",
"[CLEANUP]/tar-example_tmp_1/sub",
"dir/c"
],
"name": "taring more"
},
{
"cmd": [
"echo",
"[CLEANUP]/tar-example_tmp_1/more.tar.gz"
],
"name": "report"
},
{
"cmd": [
"[START_DIR]/cipd_tool/fuchsia/tools/bsdtar/52b14bf3d8a0f805133bcb8677059decc65268e139074f6d4f2fccb11fe0e174/bsdtar",
"--extract",
"--verbose",
"-f",
"[CLEANUP]/tar-example_tmp_1/output.tar",
"-C",
"[CLEANUP]/tar-example_tmp_1/output",
"--strip-components",
"1"
],
"name": "untaring"
},
{
"cmd": [
"find"
],
"cwd": "[CLEANUP]/tar-example_tmp_1/output",
"name": "listing"
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"rmtree",
"[CLEANUP]/tar-example_tmp_1"
],
"infra_step": true,
"name": "rmtree [CLEANUP]/tar-example_tmp_1"
},
{
"name": "$result"
}
]