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

查看:813
本文介绍了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 :)


  1. 如果您想查看使用的参数,您可以安装此插件:显示构建参数插件

  2. 如果要使用特定参数触发构建,请使用此插件:参数化触发器插件

  1. If you want to see which parameter were used, You can install this plugin: Show Build Parameters Plugin
  2. If you want to trigger a build with a specific parameters, use this plugin: Parameterized Trigger Plugin

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

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