- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已将我的管道转移到“无阶段”管道,只需使用 needs
规则并删除所有 stage
声明即可。
一切正常,但我注意到我所有的工作现在都出现在一个名为“测试”的阶段下。
这不是功能性问题,但它确实让开发人员质疑为什么会这样。有什么方法可以使用云托管的 GitLab 更改此默认阶段名称吗?
是否像将所有作业设置为使用具有相同值的 stage
一样简单?似乎有点 hack,并且与“从 .gitlab-ci.yml 中删除所有 stage
关键字”的说明相反。
最佳答案
根据 stages 上的文档,
If a job does not specify a stage, the job is assigned the
test
stage.
针对您的问题:
Is there any way to change this default stage name with Cloud-hosted GitLab?
您可以使用以下内容定义单个阶段:
stages:
- some-other-name
然后在您的每个作业中引用新阶段名称(some-other-name
),因为(来自上面的相同引用)
if a stage is defined but no jobs use it, the stage is not visible in the pipeline
关于GitLab-CI : Why do stageless pipelines show all jobs under stage "test"? 可以更改吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71934198/
我已将我的管道转移到“无阶段”管道,只需使用 needs 规则并删除所有 stage 声明即可。 一切正常,但我注意到我所有的工作现在都出现在一个名为“测试”的阶段下。 这不是功能性问题,但它确实让开
我是一名优秀的程序员,十分优秀!