且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Jenkins构建工作管道?

更新时间:2022-03-06 06:43:10

也许你可以使用 Parametrized Trigger Plugin

使用插件,您可以将触发器设置为管道作业中的构建步骤。有一个复选框阻止,直到触发作业完成,你需要激活。您可以简单地配置您的三个作业以这种方式触发,并且触发只会发生,如果你运行这个新的管道作业,所以运行其他作业没有触发任何东西都会正常工作。

Using the plugin you can set the trigger as a build step in your "Pipeline" Job. There is a checkbox "Block until triggered job is finished", which you need to activate. You could simply configure your three jobs to be triggered this way, and the triggering would only occur if you run this new Pipeline Job, so running the other jobs without triggering anything would work fine.

这应该是你需要的。