[英]One instance of Jenkins to call another
I have Jenkins as the CI server. 我有Jenkins作为CI服务器。 I have an automated testing tool setup on another machine.
我在另一台机器上安装了自动测试工具。 I installed Jenkins on the other machine also.
我也在另一台机器上安装了Jenkins。 Now I want one instance of Jenkins to trigger the project build on the other instance of Jenkins.
现在,我希望一个詹金斯实例能够在另一个詹金斯实例上触发项目构建。 Is that possible?
那可能吗?
You can do this by pinging a build URL. 您可以通过对构建URL进行ping操作来实现。 ie
即
http://server-url :{port}/job/{job_name}/build http:// server-url :{port} / job / {job_name} / build
Easiest is to use the Parameterized Remote Trigger Plugin . 最简单的方法是使用参数化的远程触发器插件 。 Calling the URL directly can be tricky if your build has parameters and / or your Jenkins instance is secured.
如果您的构建具有参数和/或您的Jenkins实例是安全的,则直接调用URL可能会很棘手。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.