简体   繁体   English

Jenkins - 触发参数化构建

[英]Jenkins - triggering a parameterized build

I have project configured in Jenkins that polls an SCM and begins a build when a change is posted. 我在Jenkins中配置了项目,轮询SCM并在发布更改时开始构建。 There is a post build action to build another project. 有一个构建后动作来构建另一个项目。 The question I have is, the project that is being built afterwards has its own parameters. 我的问题是,之后构建的项目有自己的参数。 How do I know which parameter is specified when the post-build action triggers? 如何在构建后操作触发时知道指定了哪个参数? Right now if if I use 'Choices', is it just picking the first one? 现在,如果我使用'选择',它只是选择第一个? How do I have it pick other ones? 我如何选择其他的?

OK, let's take it one by one :) 好的,我们一个接一个:)

  1. If you want to see which parameter were used, You can install this plugin: Show Build Parameters Plugin 如果要查看使用了哪个参数,可以安装此插件: Show Build Parameters Plugin
  2. If you want to trigger a build with a specific parameters, use this plugin: Parameterized Trigger Plugin 如果要使用特定参数触发构建,请使用以下插件: 参数化触发器插件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM