1. Mock CI Service

原文:https://docs.gitlab.com/ee/user/project/integrations/mock_ci.html

2. Mock CI Service

注意:仅当您处于开发环境中时,此服务才会列出!

要设置模拟 CI 服务服务器,请响应以下端点

  • commit_status: #{project.namespace.path}/#{project.path}/status/#{sha}.json

    • 让您的服务返回200 { status: ['failed'|'canceled'|'running'|'pending'|'success'|'success-with-warnings'|'skipped'|'not_found'] }
    • 如果服务返回 404,则将其解释为pending
  • build_page: #{project.namespace.path}/#{project.path}/status/#{sha}

    • 构建链接到的位置,是否实施无关紧要

有关模拟 CI 服务器的示例,请参见gitlab-org/gitlab-mock-ci-service

Copyright © 温玉 2021 | 浙ICP备2020032454号 all right reserved,powered by Gitbook该文件修订时间: 2023-08-17 12:04:10

results matching ""

    No results matching ""