Jenkins - 触发参数化构建 [英] Jenkins - triggering a parameterized build

查看:27
本文介绍了Jenkins - 触发参数化构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Jenkins 中配置了一个项目,该项目轮询 SCM 并在发布更改时开始构建.有一个构建后操作来构建另一个项目.我的问题是,之后正在构建的项目有自己的参数.我如何知道构建后操作触发时指定了哪个参数?现在如果我使用'Choices',它只是选择第一个吗?我如何让它选择其他的?

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 :)

  1. 如果你想查看使用了哪个参数,你可以安装这个插件:显示构建参数插件
  2. 如果您想使用特定参数触发构建,请使用此插件:参数化触发器插件

这篇关于Jenkins - 触发参数化构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆