在Jenkins作业的另一个Jenkins实例上运行Jenkins作业 [英] run a Jenkins job on another Jenkins instance from the Jenkins job

查看:85
本文介绍了在Jenkins作业的另一个Jenkins实例上运行Jenkins作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个Jenkins作业来启动其他Jenkins作业.这将非常容易,因为Jenkins模板项目插件允许我们创建使用来自另一个项目的构建器"类型的构建步骤.但是,使我的处境更加困难的是,我必须在其他计算机上开始Jenkins的工作.有什么标准方法可以做到吗?

I want to create a Jenkins job that starts other Jenkins jobs. That would be quite easy, because Jenkins Template Project Plugin allows us to create a build step of a type "use builders from another project". However, what makes my situation harder is that I have to start Jenkins jobs on other machines. Is there any standard way to do that?

推荐答案

如果您只想触发Job的新版本,则有很多方法可以完成

In case you want only to trigger new build of Job You Have plenty of ways to accomplish it

您可以使用远程访问API并触发请求以从源Job构建目标作业.

you can use remote access API and Trigger a request to build target job from source Job.

https://wiki.jenkins-ci.org/display/JENKINS/Remote + access + API

或者您可以使用 https://wiki.jenkins- ci.org/display/JENKINS/Parameterized+Remote+Trigger+Plugin

在处理服务器详细信息和其他内容时非常方便.您应该确保两台服务器共享ssh密钥.

which is handy in handling server details and other stuff. you shoukld ensure ssh keys shared by both servers.

这篇关于在Jenkins作业的另一个Jenkins实例上运行Jenkins作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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