1[ 2 { 3 "cmd": [ 4 "[START_DIR]/go/go/bin/go", 5 "version" 6 ], 7 "env": { 8 "CHROME_HEADLESS": "1", 9 "GOCACHE": "[START_DIR]/cache/go_cache", 10 "GOPATH": "[START_DIR]/go_deps", 11 "GOROOT": "[START_DIR]/go/go", 12 "PATH": "[START_DIR]/go/go/bin:[START_DIR]/go_deps/bin:<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" 13 }, 14 "name": "go version" 15 }, 16 { 17 "cmd": [ 18 "go", 19 "version" 20 ], 21 "env": { 22 "CHROME_HEADLESS": "1", 23 "GOCACHE": "[START_DIR]/cache/go_cache", 24 "GOPATH": "[START_DIR]/go_deps", 25 "GOROOT": "[START_DIR]/go/go", 26 "PATH": "[START_DIR]/go/go/bin:[START_DIR]/go_deps/bin:<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" 27 }, 28 "name": "env go version" 29 }, 30 { 31 "cmd": [ 32 "python", 33 "-u", 34 "\nimport os\nimport urllib2\n\nTOKEN_FILE = 'file'\nTOKEN_URL = 'http://metadata/computeMetadata/v1/project/attributes/key'\n\nreq = urllib2.Request(TOKEN_URL, headers={'Metadata-Flavor': 'Google'})\ncontents = urllib2.urlopen(req).read()\n\nhome = os.path.expanduser('~')\ntoken_file = os.path.join(home, TOKEN_FILE)\n\nwith open(token_file, 'w') as f:\n f.write(contents)\n" 35 ], 36 "name": "download file", 37 "~followup_annotations": [ 38 "@@@STEP_LOG_LINE@python.inline@@@@", 39 "@@@STEP_LOG_LINE@python.inline@import os@@@", 40 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@", 41 "@@@STEP_LOG_LINE@python.inline@@@@", 42 "@@@STEP_LOG_LINE@python.inline@TOKEN_FILE = 'file'@@@", 43 "@@@STEP_LOG_LINE@python.inline@TOKEN_URL = 'http://metadata/computeMetadata/v1/project/attributes/key'@@@", 44 "@@@STEP_LOG_LINE@python.inline@@@@", 45 "@@@STEP_LOG_LINE@python.inline@req = urllib2.Request(TOKEN_URL, headers={'Metadata-Flavor': 'Google'})@@@", 46 "@@@STEP_LOG_LINE@python.inline@contents = urllib2.urlopen(req).read()@@@", 47 "@@@STEP_LOG_LINE@python.inline@@@@", 48 "@@@STEP_LOG_LINE@python.inline@home = os.path.expanduser('~')@@@", 49 "@@@STEP_LOG_LINE@python.inline@token_file = os.path.join(home, TOKEN_FILE)@@@", 50 "@@@STEP_LOG_LINE@python.inline@@@@", 51 "@@@STEP_LOG_LINE@python.inline@with open(token_file, 'w') as f:@@@", 52 "@@@STEP_LOG_LINE@python.inline@ f.write(contents)@@@", 53 "@@@STEP_LOG_END@python.inline@@@" 54 ] 55 }, 56 { 57 "cmd": [ 58 "python", 59 "-u", 60 "\nimport os\n\n\nTOKEN_FILE = 'file'\n\n\nhome = os.path.expanduser('~')\ntoken_file = os.path.join(home, TOKEN_FILE)\nif os.path.isfile(token_file):\n os.remove(token_file)\n" 61 ], 62 "name": "cleanup file", 63 "~followup_annotations": [ 64 "@@@STEP_LOG_LINE@python.inline@@@@", 65 "@@@STEP_LOG_LINE@python.inline@import os@@@", 66 "@@@STEP_LOG_LINE@python.inline@@@@", 67 "@@@STEP_LOG_LINE@python.inline@@@@", 68 "@@@STEP_LOG_LINE@python.inline@TOKEN_FILE = 'file'@@@", 69 "@@@STEP_LOG_LINE@python.inline@@@@", 70 "@@@STEP_LOG_LINE@python.inline@@@@", 71 "@@@STEP_LOG_LINE@python.inline@home = os.path.expanduser('~')@@@", 72 "@@@STEP_LOG_LINE@python.inline@token_file = os.path.join(home, TOKEN_FILE)@@@", 73 "@@@STEP_LOG_LINE@python.inline@if os.path.isfile(token_file):@@@", 74 "@@@STEP_LOG_LINE@python.inline@ os.remove(token_file)@@@", 75 "@@@STEP_LOG_END@python.inline@@@" 76 ] 77 }, 78 { 79 "jsonResult": null, 80 "name": "$result" 81 } 82]