詹金斯 - 我如何可以传递参数从上游到下游 [英] Jenkins - How can i pass parameters from the Upstream to Downstream

查看:249
本文介绍了詹金斯 - 我如何可以传递参数从上游到下游的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有3个构建:
A - 是主构建其控制流量
B- Anoter构建
C-会后B被执行
我想一个字符串添加参数,因此用户需要手动输入一些字符串,我不知道我怎么能路径此参数B.
让说,这是我的构建流程:

I have 3 builds: A - is the Master build which control the flow B- Anoter build C- will be executed after B I want to add a String parameter to A so the user will enter some String manually, and i'm not sure how can i path this parameter to B. lets say that this is my build flow:

构建(B)
建设(C)
我不知道我怎样才能路径参数B,我应该做的,从构建流量或从B构建配置,以及如何我可以做到这一点。

build("B") build("C") I don't know how can i path the parameter to B, should i do that from the build flow or from the B build configuration and how can i do that.

在此先感谢
亚历克斯

Thanks in advance Alex

推荐答案

事情是这样的:

build("B", B_parameter: params["A_parameter"])<br>
build("C")

https://wiki.jenkins-ci.org/display/ JENKINS /编译+流量+插件

这篇关于詹金斯 - 我如何可以传递参数从上游到下游的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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