Commit 2db3264
authored
jenkins: ignore build statuses not related to pull requests (nodejs#177)
We have for a long time seen errors logged when Jenkins tells the bot
to report inline pull requests statuses, when the build in question is
not related to a pull request, but an ordinary branch like the "v8.x-staging"
branch.
In short the error raised by github.com said we couldn't fetch commits
related to pull request "v8.x-staging". It expects a pull request number
to be provided when fetching those commits.
These changes checks if the git reference provided by Jenkins does in
fact point to a pull request, if not the incoming request from Jenkins
gets a 400 Bad Request as response.
```
13:01:11.244 ERROR bot: Got error when retrieving GitHub commits for PR (req_id=78e986d9-6c52-485c-bac2-64c2797a7a40, pr=v8.x-staging, job=node-test-commit-aix, status=failure)
err: {
"code": "400",
"status": "Bad Request",
"message": "Invalid value for parameter 'number': v8.x-staging"
}
```1 parent 828e197 commit 2db3264
File tree
3 files changed
+34
-0
lines changed- scripts
- test
- _fixtures
- integration
3 files changed
+34
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
28 | 37 | | |
29 | 38 | | |
30 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
118 | 135 | | |
119 | 136 | | |
120 | 137 | | |
| |||
0 commit comments