gpt4 book ai didi

gitlab - Gitlab CI 中的 `when:manual` 和 `only:web` 有什么区别?

转载 作者:行者123 更新时间:2023-12-05 02:40:12 26 4
gpt4 key购买 nike

来自文档:

手册:https://docs.gitlab.com/14.1/ee/ci/yaml/index.html#whenmanual

A manual job is a type of job that is not executed automatically andmust be explicitly started by a user. You might want to use manualjobs for things like deploying to production.

网址:https://docs.gitlab.com/14.1/ee/ci/yaml/index.html#onlyrefs--exceptrefs

For pipelines created by using Run pipeline button in the GitLab UI,from the project’s CI/CD > Pipelines section.

他们似乎也这样做。只是重复的方法来做同样的事情?

最佳答案

当使用 when: manual 时,您的管道会有一个作业,您需要按一个按钮来触发。

enter image description here


当使用 only: web 时,这将使您能够使用 GitLab UI CI/CD 页面中的 Run Pipeline 按钮来创建新的管道。

enter image description here

关于gitlab - Gitlab CI 中的 `when:manual` 和 `only:web` 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68663699/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com