static_check:rules:-if:'$CI_PIPELINE_SOURCE == "merge_request_event"'# 是合 pr 的时候才执行该 jobtags:-dockerstage:verifyscript:# 执行的操作-makeclean-makegenproto-gomodvendor-makelintinterruptible:trueverify_import_alias:rules:-if:'$CI_PIPELINE_SOURCE == "merge_request_event"'# 是合 pr...
static_check:rules:- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' # 是合 pr 的时候才执行该 jobtags:- dockerstage: verifyscript: # 执行的操作- make clean- make genproto- go mod vendor- make lintinterruptible: trueverify_import_alias:rules:- if: '$CI_PIPELINE_SOURCE == "merge...
stages:# 指定运行的顺序-test-deployvariables:name:zouzoudeploy:tags:-k8sstage:deployretry:parallel:3# 要并行运行的作业实例数rules:-if:'$name == "zouzou"'# 如果变量名等于 zouzou,则运行流水线,将流水线设置为手动执行when:manual-if:'$name == "haha"'# 如果变量名等于 haha,则延迟 10 秒执行whe...
api 使用pipeline API触发的流水线 branches 当分支的代码被改变时触发的流水线 chat 使用GitLab ChatOps命令触发的流水线 merge_requests 当流水线是由于一个merge request创建或更新而触发的 web 使用GitLab Web上的Run pipeline而触发的流水线 此外refs下的值也可以配置成正在表达式。如 /^issue-.*$/。 only:va...
参考文档:https://docs.gitlab.com/ee/ci/yaml/#only--except only和except是两个参数用分支策略来限制jobs构建,后面会逐步被rules替代 only定义哪些分支和标签的git项目将会被job执行。 except定义哪些分支和标签的git项目将不会被job执行 示例 job:
except:定义哪些分支和标签的git项目将不会被job执行 rules:允许按照顺序评估规则,知道匹配到并未作业动态提供属性 workflow 注意:only和except逐渐被抛弃,后续推荐的是使用rules 二、实例演示 yaml文件如下: before_script:-echo"script in global before script..."after_script:-echo"script in global after script...
workflow: rules: - if: '$CI_PIPELINE_SOURCE == "push"' - if: '$CI_PIPELINE_SOURCE != "schedule"' 和 test: stage: test image: image script: - echo "Hello world!" rules: - if: $CI_PIPELINE_SOURCE == "schedule" 如果在同一个 GitLab-ci YAML 文件中使用它们会发生什么。git...
coding tasks that absorb developer time, such as scanning for security issues and enforcing compliance rules. When AI is built directly into the platform, these capabilities become even more powerful, turning AI agents into development partners while keeping you in control of how AI enhances the...
Innovation at GitLab Joint R&D OKR Process Monitoring of GitLab.com On-Call Open Source at GitLab Performance Policies related to GitLab.com R&D Tax Credits Recognition in Engineering Releases Root Cause Analysis Starting new teams Unplanned Upgrade Stop Workflow Enterprise Data ...
Summary workflow:rules (as described in https://docs.gitlab.com/12.7/ee/ci/yaml/README.html#workflowrules) does not work properly with triggered pipelines and passing variables...