summaryrefslogtreecommitdiff
path: root/doc/user/project/integrations/mock_ci.md
blob: 886094a6531cb9427f34236739fe72669f168a60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Mock CI Service

**NB: This service is only listed if you are in a development environment!**

To set up the mock CI service server, respond to the following endpoints

- `commit_status`: `#{project.namespace.path}/#{project.path}/status/#{sha}.json`
  - Have your service return `200 { status: ['failed'|'canceled'|'running'|'pending'|'success'|'success-with-warnings'|'skipped'|'not_found'] }`
   - If the service returns a 404, it is interpreted as `pending`
- `build_page`: `#{project.namespace.path}/#{project.path}/status/#{sha}`
  - Just where the build is linked to, doesn't matter if implemented

For an example of a mock CI server, see [`gitlab-org/gitlab-mock-ci-service`](https://gitlab.com/gitlab-org/gitlab-mock-ci-service)