debian-mirror-gitlab/doc/user/project/integrations/mock_ci.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
1 KiB
Markdown
Raw Normal View History

2020-10-24 23:57:45 +05:30
---
2022-11-25 23:54:43 +05:30
stage: Manage
2021-10-27 15:23:28 +05:30
group: Integrations
2022-11-25 23:54:43 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
2020-10-24 23:57:45 +05:30
---
2021-04-17 20:07:23 +05:30
# Mock CI Service **(FREE)**
2017-08-17 22:00:37 +05:30
2022-08-13 15:12:31 +05:30
NOTE:
This service is only listed if you are in a [development environment](https://gitlab.com/gitlab-org/gitlab-mock-ci-service#setup-mockci-integration)!
2017-08-17 22:00:37 +05:30
2018-12-05 23:21:45 +05:30
To set up the mock CI service server, respond to the following endpoints
2017-08-17 22:00:37 +05:30
- `commit_status`: `#{project.namespace.path}/#{project.path}/status/#{sha}.json`
2019-10-12 21:52:04 +05:30
- Have your service return `200 { status: ['failed'|'canceled'|'running'|'pending'|'success'|'success-with-warnings'|'skipped'|'not_found'] }`
2019-12-04 20:38:33 +05:30
- If the service returns a 404, it is interpreted as `pending`
2017-08-17 22:00:37 +05:30
- `build_page`: `#{project.namespace.path}/#{project.path}/status/#{sha}`
2019-10-12 21:52:04 +05:30
- Just where the build is linked to, doesn't matter if implemented
2017-08-17 22:00:37 +05:30
For an example of a mock CI server, see [`gitlab-org/gitlab-mock-ci-service`](https://gitlab.com/gitlab-org/gitlab-mock-ci-service)