| Index: recipe_modules/git/example.expected/set_got_revision.json
|
| diff --git a/recipe_modules/git/example.expected/set_got_revision.json b/recipe_modules/git/example.expected/set_got_revision.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..21a468db3e0d9892069a87cec6f1902169dc0d32
|
| --- /dev/null
|
| +++ b/recipe_modules/git/example.expected/set_got_revision.json
|
| @@ -0,0 +1,178 @@
|
| +[
|
| + {
|
| + "cmd": [
|
| + "python",
|
| + "-u",
|
| + "RECIPE_MODULE[git]/resources/git_setup.py",
|
| + "--path",
|
| + "[SLAVE_BUILD]/src",
|
| + "--url",
|
| + "https://chromium.googlesource.com/chromium/src.git"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]",
|
| + "name": "git setup"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "retry",
|
| + "fetch",
|
| + "origin",
|
| + "master",
|
| + "--recurse-submodules"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "git fetch"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "checkout",
|
| + "-f",
|
| + "FETCH_HEAD"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "git checkout"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "rev-parse",
|
| + "HEAD"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "set got_revision",
|
| + "stdout": "/path/to/tmp/",
|
| + "~followup_annotations": [
|
| + "@@@SET_BUILD_PROPERTY@got_revision@\"deadbeef\"@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "clean",
|
| + "-f",
|
| + "-d",
|
| + "-x"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "git clean"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "submodule",
|
| + "sync"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "submodule sync"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "submodule",
|
| + "update",
|
| + "--init",
|
| + "--recursive"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "submodule update"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "-c",
|
| + "foo=bar",
|
| + "count-objects",
|
| + "-v"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "count-objects",
|
| + "stdout": "/path/to/tmp/"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "config",
|
| + "--get",
|
| + "remote.origin.url"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "git config remote.origin.url",
|
| + "stdout": "/path/to/tmp/",
|
| + "~followup_annotations": [
|
| + "@@@STEP_TEXT@foo@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "show",
|
| + "HEAD",
|
| + "--format=%at",
|
| + "-s"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "git show",
|
| + "stdout": "/path/to/tmp/"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "fetch",
|
| + "origin",
|
| + "--tags"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "git fetch tags"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "status"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "git status"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "status"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "git status can_fail_build"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "status"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "git status cannot_fail_build"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "rebase",
|
| + "origin/master"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "my repo rebase"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "git",
|
| + "bundle",
|
| + "create",
|
| + "[SLAVE_BUILD]/all.bundle",
|
| + "--all"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]/src",
|
| + "name": "git bundle"
|
| + },
|
| + {
|
| + "name": "$result",
|
| + "recipe_result": null,
|
| + "status_code": 0
|
| + }
|
| +]
|
|
|