diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-02-14 19:52:44 -0600 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-02-24 20:01:36 -0600 |
commit | 1c85d86d19d6cb0cb0da82ea062be3ccd351ffef (patch) | |
tree | a9e3413db331ecfdb492752b74f61a95c8f78fdd /doc/user/project/integrations | |
parent | 7d15f36be6cdefcf95a96bf4cbb425baceaf2488 (diff) | |
download | gitlab-ce-1c85d86d19d6cb0cb0da82ea062be3ccd351ffef.tar.gz |
Add MockCiService integrationmock-ci-service
MR: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9250/
See https://gitlab.com/madlittlemods/gl-mock-ci-service
Diffstat (limited to 'doc/user/project/integrations')
-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) |