diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-02-27 16:43:05 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-02-27 16:43:05 +0000 |
commit | 23659c52daf42a343a005924615cf428b8a2d7a2 (patch) | |
tree | 68d346a7e8b1f7f4cb12fc6262f1a8432c4eff68 /doc/user | |
parent | 0599ced165b45ef10051c1e74d093846b6298103 (diff) | |
parent | 1c85d86d19d6cb0cb0da82ea062be3ccd351ffef (diff) | |
download | gitlab-ce-23659c52daf42a343a005924615cf428b8a2d7a2.tar.gz |
Merge branch 'mock-ci-service' into 'master'
Add Mock CI service/integration
See merge request !9250
Diffstat (limited to 'doc/user')
-rw-r--r-- | doc/user/project/integrations/mock_ci.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/user/project/integrations/mock_ci.md b/doc/user/project/integrations/mock_ci.md new file mode 100644 index 00000000000..6aefe5dbded --- /dev/null +++ b/doc/user/project/integrations/mock_ci.md @@ -0,0 +1,13 @@ +# Mock CI Service + +**NB: This service is only listed if you are in a development environment!** + +To setup 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) |