jenkins DSL 配置的构建管道中的手动批准步骤

Manual approval step in a jenkins DSL configured build pipeline

我希望构建管道在作业完成后停止并等待手动单击,直到管道通过 DSL 继续运行。

由于 spotty/no 通过 DSL 的支持,我想避免使用促销插件。

您可以使用 buildPipelineTrigger DSL method to add a manual trigger, which is provided by the Build Pipeline Plugin.

job('example-1') {
    publishers {
        buildPipelineTrigger('deploy-cluster-1, deploy-cluster-2')
    }
}