Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
GitLab
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
需求
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
测试用例
产物
部署
发布
Package registry
Container registry
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
gitlab-cn
GitLab
合并请求
!1152
Add the cicd minutes doc
代码
评审变更
检出分支
下载
补丁
文本差异
已关闭
Add the cicd minutes doc
add_glossary_doc
into
main-jh
概览
5
提交
8
流水线
5
变更
2
所有主题已解决!
隐藏所有评论
已关闭
Qi Zhao
requested to merge
add_glossary_doc
into
main-jh
2 years ago
概览
5
提交
8
流水线
5
变更
2
所有主题已解决!
隐藏所有评论
展开
Add the cicd minutes doc
0
0
合并请求报告
比较
main-jh
版本 4
3b7ade83
2 years ago
版本 3
9b15fa11
2 years ago
版本 2
425aac2c
2 years ago
版本 1
334d754b
2 years ago
main-jh (源)
和
最新版本
最新版本
0c820386
8 次提交,
2 years ago
版本 4
3b7ade83
2 次提交,
2 years ago
版本 3
9b15fa11
1 次提交,
2 years ago
版本 2
425aac2c
1 次提交,
2 years ago
版本 1
334d754b
3 次提交,
2 years ago
2 文件
+
51
−
21
内联
比较变更
并排
内联
显示空白变更内容
一次显示一个文件
文件
2
搜索(例如 *.vue)(Ctrl+P)
jh/doc/ci/pipelines/cicd_minutes.md
+
45
−
16
操作
@@ -186,27 +186,56 @@ Job duration * Cost factor
一条流水线使用的 CI/CD 分钟数是流水线中运行的所有作业使用的总 CI/CD 分钟数。作业可以同时运行,因此总 CI/CD 分钟使用量可能高于流水线的端到端持续时间。
<!--
### Cost factor
### 消耗参数
The cost factor for a job running on a shared runner is:
在 JiHuLab 的共享运行器上运行作业的消耗参数为:
-
`0.008`
for public projects on GitLab SaaS, if
[
created 2021-07-17 or later
](
https://gitlab.com/gitlab-org/gitlab/-/issues/332708
)
.
(For every 125 minutes of job time, you accrue 1 CD/CD minute.)
-
`0.008`
for projects members of GitLab
[
Open Source program
](
../../subscriptions/index.md#gitlab-for-open-source
)
.
(For every 125 minutes of job time, you accrue 1 CD/CD minute.)
-
`0`
for public projects on GitLab self-managed instances, and for GitLab SaaS public projects created before 2021-07-17.
-
`1`
for internal and private projects.
-
`1`
:内部和私有项目。
-
`0.5`
:
[
极狐GitLab 开源项目
](
../../subscriptions/index.md#gitlab-for-open-source
)
中的公开项目。
-
`0.008`
:
[
极狐GitLab 开源项目
](
../../subscriptions/index.md#gitlab-for-open-source
)
中公开项目的公开派生。对于每 125 分钟的作业执行时间,
您会使用 1 个 CI/CD 分钟数。
-
`1`
:2022 年 10 月 1 日之后的其他公开项目。
对于每 1 分钟的作业执行时间,您会使用 1 个 CI/CD 分钟数。
-
[
免费版极狐GitLab 项目
](
#cost-factor-for-community-contributions-to-gitlab-projects
)
有另外的计算方式。
### Additional costs on GitLab SaaS
私有化部署的消耗参数为:
GitLab SaaS shared runners have different cost factors, depending on the runner type (Linux, Windows, macOS) and the virtual machine configuration.
-
`0`
:公开项目,不消耗 CI/CD 分钟数。
-
`1`
:内部和私有项目。
<a
id=
"cost-factor-for-community-contributions-to-gitlab-projects"
></a>
#### 免费版极狐GitLab 项目的消耗参数
使用免费版极狐GitLab 的贡献者在为极狐GitLab 维护的开源项目做出贡献时可以使用共享 Runner 上的 30 万分钟数。
这 30 万分钟数适用于所有 SaaS 层,消耗参数计算方式如下:
-
`Monthly minute quota / 300,000 job duration minutes = Cost factor`
例如,专业版中每个月拥有 10,000 的 CI/CD 分钟数:
-
10,000 / 300,000 = 0.03333333333 消耗参数
对于降低的消耗参数:
-
合并请求源项目必须是极狐GitLab 所维护项目的派生。
<!--例如
[
`gitlab-com/www-gitlab-com`
](
https://gitlab.com/gitlab-com/www-gitlab-com
)
或
[
`gitlab-org/gitlab`
](
https://gitlab.com/gitlab-org/gitlab
)
等。-->
-
合并请求目标项目必须是派生的父项目。
-
流水线必须是合并请求、合并结果或合并队列流水线。
极狐GitLab 管理员可以使用名为
`ci_minimal_cost_factor_for_gitlab_namespaces`
的
[
标志
](
../../administration/feature_flags.md
)
将命名空间添加到降低的消耗参数中。
### JiHuLab SaaS 上的额外消耗
JiHuLab SaaS Runner 根据不同的 Runner 类型(Linux、Windows 或 macOS)和虚拟机配置,拥有不同的消耗参数。
| JiHuLab SaaS Runner 类型 | 机器类型 | CI/CD 分钟数消耗参数 |
|:---------------------------|:-----|:---------------------------------|
| Linux OS + Docker 执行器 | 小 | 1 |
| Linux OS + Docker 执行器 | 中 | 2 |
| Linux OS + Docker 执行器 | 大 | 3 |
| SaaS runner 类型 | 虚拟机配置 | CI/CD 分钟消耗因数 |
| :--------- | :------------------- | :--------- |
| Linux OS + Docker executor| 1 vCPU, 3.75 GB RAM |1|
| macOS + shell executor | 4 vCPU, 10 GB RAM| 6 |
-->
### 每月重置 CI/CD 分钟数
加载中