Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • GitCode
  • 帮助文档
  • Wiki
    • Docs
    • Ci
  • lint

帮
帮助文档
  • 项目概览

GitCode / 帮助文档

通知 1628
Star 125
Fork 140
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 166
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 23
  • DevOps
    • 流水线
    • 流水线任务
    • 计划
  • Wiki 89
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
帮
帮助文档
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 166
    • Issue 166
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 23
    • 合并请求 23
  • Pages
  • DevOps
    • DevOps
    • 流水线
    • 流水线任务
    • 计划
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 89
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 流水线任务
  • 提交
  • Issue看板

lint · 变更

页面历史
update 编写于 6月 03, 2021 作者: Miykael_xxm's avatar Miykael_xxm
隐藏空白更改
内联 并排
Showing with 6 addition and 4 deletion
+6 -4
  • docs/ci/lint.md docs/ci/lint.md +6 -4
  • 未找到文件。
docs/ci/lint.md
View page @ 55400e64
## 使用 CI Lint 工具验证 .gitlab-ci.yml 语法 # 使用 CI Lint 工具验证 .gitlab-ci.yml
如果要在提交更改之前测试 CI/CD 配置的有效性,可以使用 CI Lint 工具。默认情况下,此工具会检查语法和逻辑错误,并且可以模拟创建 Pipelines 以尝试查找更复杂的问题。 如果要在提交更改之前测试 CI/CD 配置的有效性,可以使用 CI Lint 工具。默认情况下,此工具会检查语法和逻辑错误,并且可以模拟创建 Pipelines 以尝试查找更复杂的问题。
要访问 CI Lint 工具,请导航到项目中的 CI/CD > Pipelines 或 CI/CD > Jobs ,然后单击CI lint。 要访问 CI Lint 工具,请导航到项目中的 CI/CD > Pipelines 或 CI/CD > Jobs ,然后单击CI lint。
### 验证基本逻辑和语法
## 验证基本逻辑和语法
By default, the CI lint checks the syntax of your CI YAML configuration and also runs some basic logical validations. Configuration added with the includes keyword, is also validated. By default, the CI lint checks the syntax of your CI YAML configuration and also runs some basic logical validations. Configuration added with the includes keyword, is also validated.
...@@ -12,7 +13,8 @@ By default, the CI lint checks the syntax of your CI YAML configuration and also ...@@ -12,7 +13,8 @@ By default, the CI lint checks the syntax of your CI YAML configuration and also
要使用 CI Lint,请将完整的 CI 配置(例如 .gitlab-ci.yml)粘贴到文本框中,然后单击**验证**: 要使用 CI Lint,请将完整的 CI 配置(例如 .gitlab-ci.yml)粘贴到文本框中,然后单击**验证**:
![CI Lint]() ![CI Lint]()
### Pipeline 模拟
## Pipeline 模拟
并非所有 Pipeline 配置问题都可以通过基本 CI Lint 验证工具找到。你可以模拟 Pipeline 的创建过程并进行更深入的验证,从而发现更复杂的问题。 并非所有 Pipeline 配置问题都可以通过基本 CI Lint 验证工具找到。你可以模拟 Pipeline 的创建过程并进行更深入的验证,从而发现更复杂的问题。
...@@ -22,6 +24,6 @@ Pipeline 模拟验证配置文件的步骤如下: ...@@ -22,6 +24,6 @@ Pipeline 模拟验证配置文件的步骤如下:
2. 单击 模拟创建默认分支 Pipeline 复选框 2. 单击 模拟创建默认分支 Pipeline 复选框
3. 单击验证 3. 单击验证
#### Pipeline 模拟限制 ### Pipeline 模拟限制
Pipeline 模拟是通过针对默认分支的 git push 进行,因此你必须[有权](/docs/user/permissions)在此分支上创建 Pipeline 才能使用模拟进行验证。 Pipeline 模拟是通过针对默认分支的 git push 进行,因此你必须[有权](/docs/user/permissions)在此分支上创建 Pipeline 才能使用模拟进行验证。
\ No newline at end of file
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7