api 使用pipeline API触发的流水线 branches 当分支的代码被改变时触发的流水线 chat 使用GitLab ChatOps命令触发的流水线 merge_requests 当流水线是由于一个merge request创建或更新而触发的 web 使用GitLab Web上的Run pipeline而触发的流水线 此外refs下的值也可以配置成正在表达式。如 /^issue-.*$/。 only:va...
only和except允许指定用于过滤forks作业的存储库路径。 only和except中可以使用特殊的关键字,如branches、tags、api、external、pipelines、pushes、schedules、triggers、web、merge_requests、chats等。 only和except中可以使用特殊的关键字: 在下面这个例子中,job将只会运行以issue-开始的refs(分支),然而except中指定分支...
可以使用正则表达式指定,也可以指定关键字。 only和except可同时使用。如果only和except在一个job配置中同时存在,则以only为准,跳过except(从下面示例中得出)。 四个关键字可以和only、except一起使用 refs、variables、changes、kubernetes 使用only:refs和except:refs关键字来控制何时根据分支名称或管道类型向管道添加作业。
限制job 创建的时间,也可用:only:refs, only:kubernetes, only:variables, and only:changes. pages 上传与 gitlab pages 一起使用的结果 parallel 一个job 的多少个实例可以同时运行 release 指示运行程序生成一个发布对象。 resource_group 限制job 并发 retry 在失败的情况下,一个job可以自动重试几次。 rules ...
only: refs: - branches variables: - $RELEASE == "staging" - $STAGING changes策略用来根据文件是否被git push修改来决定job是否执行。job "docker build"被执行,只有当下面的文件任何一个被修改。 docker build: script: docker build -t my-image:$CI_COMMIT_REF_SLUG . ...
only:refs, only:kubernetes, only:variables only:changes except不创建作业的限制条件。 以下这些也可用: except:refs, except:kubernetes, except:variables except:changes tags用于选择 Runner 的标签列表。 allow_failure允许作业执行失败。失败的作业无助于提交状态 ...
# extend example.tests:script:rake teststage:testonly:refs:-branchesrspec:extends:.testsscript:rake rspeconly:variables:-$RSPEC before_script与after_script 使用before_script可以定义一系列命令,这些命令应该在每个 Job 的script命令之前,但在artifacts恢复之后运行。
Engineering Demo Process Engineering Error Budgets Engineering Fellow Shadow Engineering Function Performance Indicators Engineering Hiring Engineering IC Leadership Engineering Management Engineering Mentorship Engineering Projects Engineering Secondments Engineering Team Readmes Engineering Workflow Expa...
GitLab Communication Chat GitLab Video Playbook Power of the Pause Top Misused Terms - GitLab Communication GitLab's Guide to Total Rewards Hiring & Talent Acquisition Handbook IT IT Enterprise Applications Labor and Employment Notices Leadership Legal & Corporate Affairs ("LACA") ...
buildonly:changes:-api/**/*tags:-builderscript:-cdapi-dotnetbuildtest:image:dotnet/sdk:5.0stage:testonly:changes:-api/**/*tags:-builderscript:-cdapi-dotnettestpublish-ui:image:node:15stage:publish-uitags:-builderonly:refs:-maincache:-key:"$CI_COMMIT_REF_SLUG-ui"policy:pushpaths:-app/...