| Conditions | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | import httplib |
||
| 8 | def run(self, project, build_num): |
||
| 9 | """ |
||
| 10 | ReRun a specific build in project. |
||
| 11 | """ |
||
| 12 | path = 'project/%s/%s/retry' % (project, build_num) |
||
| 13 | |||
| 14 | response = self._perform_request( |
||
| 15 | path, method='POST' |
||
| 16 | ) |
||
| 17 | |||
| 18 | if response.status_code != httplib.CREATED: |
||
| 19 | raise Exception('Project %s not found.' % project) |
||
| 20 | |||
| 21 | return response.json() |
||
| 22 |