错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Under One Condition

  • Jeffrey Painter

摘要

So far, we’ve looked at how to define a pipeline via CI/CD configuration files where all jobs in all stages will be executed. There are times, however, when we may want to run a job only under certain conditions; for example, we may want to run one job when deploying to a staging environment and a different job when deploying to a production environment. Also, we may need to run cleanup jobs when a build or test failure occurs. And then there may be times when we want a job to pause awaiting some manual action to be taken, such as whether to go ahead and deploy a product to production. We’ll consider all of these scenarios in this chapter.