Jenkins - 触发参数化构建 [英] Jenkins - triggering a parameterized build
本文介绍了Jenkins - 触发参数化构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Jenkins中配置了项目,轮询SCM并在发布更改时开始构建。有一个后构建动作来构建另一个项目。我的问题是,后来建立的项目有自己的参数。如何知道后构建操作触发时指定的参数?现在如果我使用选择,它只是选择第一个?
I have project configured in Jenkins that polls an SCM and begins a build when a change is posted. 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 :)
- If you want to see which parameter were used, You can install this plugin: Show Build Parameters Plugin
- If you want to trigger a build with a specific parameters, use this plugin: Parameterized Trigger Plugin
这篇关于Jenkins - 触发参数化构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文