| [ |
| { |
| "cmd": [], |
| "name": "ensure bsdtar" |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[START_DIR]/cipd", |
| "-ensure-file", |
| "fuchsia/tools/bsdtar/linux-amd64 latest", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "ensure 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@ \"instance_id\": \"resolved-instance_id-of-latest----------\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/tools/bsdtar/linux-amd64\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@ ]@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "touch", |
| "[TMP_BASE]/tar-example_tmp_1/a" |
| ], |
| "name": "touch a" |
| }, |
| { |
| "cmd": [ |
| "touch", |
| "[TMP_BASE]/tar-example_tmp_1/b" |
| ], |
| "name": "touch b" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[TMP_BASE]/tar-example_tmp_1/sub/dir" |
| ], |
| "infra_step": true, |
| "name": "mkdirs" |
| }, |
| { |
| "cmd": [ |
| "touch", |
| "[TMP_BASE]/tar-example_tmp_1/sub/dir/c" |
| ], |
| "name": "touch c" |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd/bsdtar", |
| "-cf", |
| "[TMP_BASE]/tar-example_tmp_1/more.tar.gz", |
| "-z", |
| "-C", |
| "[TMP_BASE]/tar-example_tmp_1", |
| "a", |
| "b", |
| "-C", |
| "[TMP_BASE]/tar-example_tmp_1/sub", |
| "dir/c" |
| ], |
| "name": "taring more" |
| }, |
| { |
| "cmd": [ |
| "echo", |
| "[TMP_BASE]/tar-example_tmp_1/more.tar.gz" |
| ], |
| "name": "report" |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd/bsdtar", |
| "-xf", |
| "[TMP_BASE]/tar-example_tmp_1/output.tar", |
| "-C", |
| "[TMP_BASE]/tar-example_tmp_1/output", |
| "-v" |
| ], |
| "name": "untaring" |
| }, |
| { |
| "cmd": [ |
| "find" |
| ], |
| "cwd": "[TMP_BASE]/tar-example_tmp_1/output", |
| "name": "listing" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "rmtree", |
| "[TMP_BASE]/tar-example_tmp_1" |
| ], |
| "infra_step": true, |
| "name": "rmtree [TMP_BASE]/tar-example_tmp_1" |
| }, |
| { |
| "name": "$result", |
| "recipe_result": null, |
| "status_code": 0 |
| } |
| ] |