詹金斯 - 在工作之间传递变量? [英] Jenkins - passing variables between jobs?

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

问题描述

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

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

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

How can I run the first job with a parameter 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.

您还需要在下游添加您从上游传递的这个参数.

You need also add this parameter you passed from upstream in downstream.

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

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