blob: 40fe1e8967e4a38be201774de59faac7a9d4a3c5 [file] [log] [blame]
[
{
"cmd": [],
"name": "ensure gsutil"
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd/gsutil",
"-ensure-file",
"infra/gsutil version:4.41",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure gsutil.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-version:4.41----\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/gsutil\"@@@",
"@@@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",
"-vpython-spec",
"RECIPE_MODULE[fuchsia::gsutil]/resources/gsutil.vpython",
"-u",
"[START_DIR]/cipd/gsutil/gsutil",
"-o",
"GSUtil:software_update_check_period=0",
"cp",
"[CLEANUP]/file-to-upload.txt",
"gs://bucket/builds/0/dest"
],
"infra_step": true,
"name": "upload dest to bucket",
"~followup_annotations": [
"@@@STEP_LINK@dest@https://storage.cloud.google.com/bucket/builds/0/dest@@@"
]
},
{
"cmd": [
"vpython",
"-vpython-spec",
"RECIPE_MODULE[fuchsia::gsutil]/resources/gsutil.vpython",
"-u",
"[START_DIR]/cipd/gsutil/gsutil",
"-o",
"GSUtil:software_update_check_period=0",
"-m",
"rsync",
"-r",
"[CLEANUP]/dir-to-upload",
"gs://bucket/builds/0/dest"
],
"infra_step": true,
"name": "upload dest to bucket (2)",
"~followup_annotations": [
"@@@STEP_LINK@dest@https://console.cloud.google.com/storage/browser/bucket/builds/0/dest@@@"
]
},
{
"cmd": [],
"name": "isolated",
"~followup_annotations": [
"@@@SET_BUILD_PROPERTY@isolated@\"[dummy hash]\"@@@"
]
},
{
"cmd": [],
"name": "isolated.ensure isolated",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[CACHE]/isolated_client",
"-ensure-file",
"infra/tools/luci/isolated/${platform} git_revision:305e79001db1846906c7136d90a863bee5bd3bfc",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "isolated.ensure isolated.ensure_installed",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@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:305\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/isolated/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": [
"[CACHE]/isolated_client/isolated",
"archive",
"-verbose",
"-isolate-server",
"https://example.isolateserver.appspot.com",
"-namespace",
"default-gzip",
"-dump-hash",
"/path/to/tmp/",
"-files",
"[CLEANUP]/dir-to-upload:my_file",
"-dirs",
"[CLEANUP]/dir-to-upload:."
],
"infra_step": true,
"name": "isolated.isolate",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LINK@isolated UI@https://example.isolateserver.appspot.com/browse?namespace=default-gzip&hash=%5Bdummy+hash%5D@@@"
]
},
{
"cmd": [],
"name": "cipd",
"~followup_annotations": [
"@@@SET_BUILD_PROPERTY@git_revision@\"abc1234\"@@@",
"@@@SET_BUILD_PROPERTY@instance_id@\"40-chars-fake-of-the-package-instance_id\"@@@",
"@@@SET_BUILD_PROPERTY@package@\"fuchsia/foo/resolved-platform\"@@@"
]
},
{
"cmd": [
"cipd",
"pkg-build",
"-pkg-def",
"{\"data\": [{\"file\": \"my_file\"}, {\"dir\": \".\", \"exclude\": []}, {\"version_file\": \".versions/foo.cipd_version\"}], \"install_mode\": \"copy\", \"package\": \"fuchsia/foo/${platform}\", \"root\": \"[CLEANUP]/dir-to-upload\"}",
"-out",
"[CLEANUP]/foo.cipd",
"-hash-algo",
"sha256",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.build fuchsia/foo/${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/foo/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"cipd",
"search",
"fuchsia/foo/${platform}",
"-tag",
"git_revision:abc1234",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.cipd search fuchsia/foo/${platform} git_revision:abc1234",
"~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]/foo.cipd",
"-ref",
"latest",
"-tag",
"extra_tag:value",
"-tag",
"git_repository:tools",
"-tag",
"git_revision:abc1234",
"-tag",
"version:abc1234",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.register fuchsia/foo/${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/foo/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@",
"@@@STEP_LINK@fuchsia/foo/resolved-platform@https://chrome-infra-packages.appspot.com/p/fuchsia/foo/resolved-platform/+/40-chars-fake-of-the-package-instance_id@@@"
]
},
{
"name": "$result"
}
]