2017-02-14 20:52:44 -05:00
|
|
|
# Mock CI Service
|
|
|
|
|
|
|
|
**NB: This service is only listed if you are in a development environment!**
|
|
|
|
|
2018-09-19 12:03:00 -04:00
|
|
|
To set up the mock CI service server, respond to the following endpoints
|
2017-02-14 20:52:44 -05:00
|
|
|
|
|
|
|
- `commit_status`: `#{project.namespace.path}/#{project.path}/status/#{sha}.json`
|
2019-07-21 21:49:37 -04:00
|
|
|
- Have your service return `200 { status: ['failed'|'canceled'|'running'|'pending'|'success'|'success-with-warnings'|'skipped'|'not_found'] }`
|
2019-08-29 22:25:44 -04:00
|
|
|
- If the service returns a 404, it is interpreted as `pending`
|
2017-02-14 20:52:44 -05:00
|
|
|
- `build_page`: `#{project.namespace.path}/#{project.path}/status/#{sha}`
|
2019-07-21 21:49:37 -04:00
|
|
|
- Just where the build is linked to, doesn't matter if implemented
|
2017-02-14 20:52:44 -05:00
|
|
|
|
|
|
|
For an example of a mock CI server, see [`gitlab-org/gitlab-mock-ci-service`](https://gitlab.com/gitlab-org/gitlab-mock-ci-service)
|