Jenkins - 在作业之间传递变量? [英] Jenkins - passing variables between jobs?

查看:130
本文介绍了Jenkins - 在作业之间传递变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在jenkins中有两个工作,两个工作都需要相同的参数。

I have two jobs in jenkins, both of which need the same parameter.

如何使用参数运行第一个作业,以便在触发第二个作业时使用相同的参数?

How can I run the first job with a paramter so that when it triggers the second job, the same parameter is used?

推荐答案

您可以使用参数化触发器插件,它将允许您将参数从一个任务传递到另一个任务。

You can use Parameterized Trigger Plugin which will let you pass parameters from one task to another.

这篇关于Jenkins - 在作业之间传递变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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