blob: 99b9fdd97d8b04250a4dea4cd35e24df07123b26 [file] [log] [blame]
[
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
"--spec-path",
"cache_dir = '[CACHE]/git'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'infra', 'url': 'https://chromium.googlesource.com/infra/infra.git'}]",
"--revision_mapping_file",
"{\"got_revision\": \"infra\"}",
"--git-cache-dir",
"[CACHE]/git",
"--cleanup-dir",
"[CLEANUP]/bot_update",
"--output_json",
"/path/to/tmp/json",
"--revision",
"infra@HEAD"
],
"env": {
"GIT_HTTP_LOW_SPEED_LIMIT": "102400",
"GIT_HTTP_LOW_SPEED_TIME": "300"
},
"env_suffixes": {
"DEPOT_TOOLS_UPDATE": [
"0"
],
"PATH": [
"RECIPE_REPO[depot_tools]"
]
},
"infra_step": true,
"name": "bot_update",
"~followup_annotations": [
"@@@STEP_TEXT@Some step text@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
"@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"infra\": \"HEAD\"@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"infra\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/infra.git\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"revision\": \"5e03a58dc0850e5137a8ebbce29610670c756aed\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
"@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"infra\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"5e03a58dc0850e5137a8ebbce29610670c756aed\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master@{#197293}\"@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"root\": \"infra\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"source_manifest\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"directories\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"infra\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/infra.git\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"revision\": \"5e03a58dc0850e5137a8ebbce29610670c756aed\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"version\": 0@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@",
"@@@SET_BUILD_PROPERTY@got_revision@\"5e03a58dc0850e5137a8ebbce29610670c756aed\"@@@",
"@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#197293}\"@@@"
]
},
{
"cmd": [
"python",
"-u",
"RECIPE_REPO[depot_tools]/gclient.py",
"runhooks"
],
"cwd": "[START_DIR]/infra",
"env_suffixes": {
"PATH": [
"RECIPE_REPO[depot_tools]"
]
},
"name": "gclient runhooks"
},
{
"cmd": [
"which",
"docker"
],
"name": "ensure docker installed"
},
{
"cmd": [
"docker",
"version"
],
"name": "docker version",
"~followup_annotations": [
"@@@STEP_TEXT@1.2.3@@@"
]
},
{
"cmd": [],
"name": "clear old images"
},
{
"cmd": [
"docker",
"images",
"-q",
"-f",
"reference=android_docker:*"
],
"name": "clear old images.list images",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"docker",
"rmi",
"-f",
"img1"
],
"name": "clear old images.delete image img1",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"/bin/bash",
"[START_DIR]/infra/docker/android_devices_ARM/build.sh"
],
"name": "build image"
},
{
"cmd": [
"luci-auth",
"token",
"-scopes",
"https://www.googleapis.com/auth/cloud-platform",
"-lifetime",
"3m"
],
"infra_step": true,
"name": "get access token for default account"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[infra::docker]/resources/docker_login.py",
"--server",
"gcr.io",
"--service-account-token-file",
"extra.secret.token.should.not.be.logged",
"--config-file",
"[CLEANUP]/.docker"
],
"name": "docker login"
},
{
"cmd": [
"docker",
"--config",
"[CLEANUP]/.docker",
"tag",
"android_docker:latest",
"gcr.io/chromium-container-registry/android_docker:2012-05-14-12-53"
],
"name": "docker tag"
},
{
"cmd": [
"docker",
"--config",
"[CLEANUP]/.docker",
"push",
"gcr.io/chromium-container-registry/android_docker:2012-05-14-12-53"
],
"name": "docker push",
"~followup_annotations": [
"@@@STEP_TEXT@image = android_docker:1-2-3: digest: sha256:deadbeef size:123@@@"
]
},
{
"name": "$result"
}
]