正式なドキュメントは英語版であり、この日本語訳はAI支援翻訳により作成された参考用のものです。日本語訳の一部の内容は人間によるレビューがまだ行われていないため、翻訳のタイミングにより英語版との間に差異が生じることがあります。最新かつ正確な情報については、英語版をご参照ください。

Mock CI

  • Tier: Free, Premium, Ultimate
  • Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated

This integration is only available 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, the service is interpreted as pending.
  • build_page: #{project.namespace.path}/#{project.path}/status/#{sha}
    • Where the build is linked to (whether or not it’s implemented).

For an example Mock CI server, see gitlab-org/gitlab-mock-ci-service.