can_fail_build.json 2.58 KB
Newer Older
1 2 3 4 5
[
  {
    "cmd": [
      "python",
      "-u",
6
      "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
      "--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"
  },
37 38 39 40 41 42 43 44 45 46 47 48 49
  {
    "cmd": [
      "git",
      "rev-parse",
      "HEAD"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "read revision",
    "stdout": "/path/to/tmp/",
    "~followup_annotations": [
      "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@"
    ]
  },
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
  {
    "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",
    "~followup_annotations": [
      "step returned non-zero exit code: 1",
      "@@@STEP_EXCEPTION@@@"
    ]
  },
  {
    "name": "$result",
    "reason": "Infra Failure: Step('git status can_fail_build') returned 1",
    "status_code": 1
  }
]