[ { "cmd": [ "python", "-u", "\nimport subprocess\nimport sys\n\nwhich = 'where' if sys.platform == 'win32' else 'which'\ngit = subprocess.check_output([which, 'git'])\nprint 'git was found at %s' % git\nif 'cipd_bin_packages' not in git:\n print >> sys.stderr, 'Git must be obtained through CIPD.'\n sys.exit(1)\n" ], "env": { "CHROME_HEADLESS": "1", "PATH": ":RECIPE_REPO[depot_tools]" }, "name": "Assert that Git is from CIPD", "~followup_annotations": [ "@@@STEP_LOG_LINE@python.inline@@@@", "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", "@@@STEP_LOG_LINE@python.inline@import sys@@@", "@@@STEP_LOG_LINE@python.inline@@@@", "@@@STEP_LOG_LINE@python.inline@which = 'where' if sys.platform == 'win32' else 'which'@@@", "@@@STEP_LOG_LINE@python.inline@git = subprocess.check_output([which, 'git'])@@@", "@@@STEP_LOG_LINE@python.inline@print 'git was found at %s' % git@@@", "@@@STEP_LOG_LINE@python.inline@if 'cipd_bin_packages' not in git:@@@", "@@@STEP_LOG_LINE@python.inline@ print >> sys.stderr, 'Git must be obtained through CIPD.'@@@", "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", "@@@STEP_LOG_END@python.inline@@@" ] }, { "cmd": [ "python", "-u", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "--path", "[START_DIR]/skia", "--url", "https://skia.googlesource.com/skia.git" ], "name": "git setup" }, { "cmd": [ "git", "fetch", "origin", "abc123", "--progress" ], "cwd": "[START_DIR]/skia", "env": { "PATH": "RECIPE_REPO[depot_tools]:" }, "infra_step": true, "name": "git fetch" }, { "cmd": [ "git", "checkout", "-f", "FETCH_HEAD" ], "cwd": "[START_DIR]/skia", "infra_step": true, "name": "git checkout" }, { "cmd": [ "git", "rev-parse", "HEAD" ], "cwd": "[START_DIR]/skia", "infra_step": true, "name": "read revision", "~followup_annotations": [ "@@@STEP_TEXT@
checked out 'deadbeef'
@@@" ] }, { "cmd": [ "git", "clean", "-f", "-d", "-x" ], "cwd": "[START_DIR]/skia", "infra_step": true, "name": "git clean" }, { "cmd": [ "git", "fetch", "origin", "refs/changes/89/456789/12" ], "cwd": "[START_DIR]/skia", "infra_step": true, "name": "git fetch (2)" }, { "cmd": [ "git", "checkout", "FETCH_HEAD" ], "cwd": "[START_DIR]/skia", "infra_step": true, "name": "git checkout (2)" }, { "cmd": [ "git", "rebase", "abc123" ], "cwd": "[START_DIR]/skia", "infra_step": true, "name": "git rebase" }, { "cmd": [ "vpython", "-u", "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", "--json-output", "/path/to/tmp/json", "ensure-directory", "--mode", "0777", "[START_DIR]/tmp" ], "infra_step": true, "name": "makedirs tmp_dir" }, { "name": "$result" } ]