xcode 如何使用 Jenkins 设置我的远程从站?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10657205/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to setup my remote slave with Jenkins?
提问by Badre
In therory Master is : Job and Slave is : Node (however that what im understand).
理论上 Master 是:Job 和 Slave 是:Node(但是我理解的是)。
I installed JENKINS in 2 machines MAC OS X (maybe windows whatever), I set up my job with a correct repository and configure xCode in this job etc ... like same tutorial, i set up my slave etc ... all fine and 10/10 BUTTT this test is local test, in one machine.
我在 2 台机器 MAC OS X 上安装了 JENKINS(可能是 Windows),我用正确的存储库设置了我的工作,并在这个工作中配置了 xCode 等等......就像同样的教程,我设置了我的奴隶等等......一切都很好10/10 BUTTT 这个测试是本地测试,在一台机器上。
My problem is : I want have SLave(Node) for building my xCode Project in MAC OS, and My Matser (job) in others server (why not my seconde machine MAC OS X), How i can establish connection between slave (Node) and Master(job) for building my project xCode in my Remote SLave.
我的问题是:我想要在 MAC OS 中构建我的 xCode 项目的 SLave(节点),以及在其他服务器(为什么不是我的第二台机器 MAC OS X)中的我的 Matser(工作),我如何建立从站(节点)之间的连接和 Master(job) 用于在我的远程从站中构建我的项目 xCode。
回答by Tyler Smith
Set your job to use "Restrict where this project can be run" by checking the box and put the name of the slave in the box (use quotes if there are spaces
通过选中该框并在框中输入从属设备的名称(如果有空格,请使用引号),将您的作业设置为使用“限制该项目可以运行的位置”
I had a little trouble deciphering your questions so if this does not answer please rework what you are asking.
我在解读您的问题时遇到了一些麻烦,所以如果这不能回答,请重新处理您的问题。
回答by user2300690
Easy set the IP address of the slave host machine in the Jenkins setup. Choose ssh as the communications method and set up accounting information on the slave machines jenkins setup. Make sure the slave machine can ssh to the account and machine you set up in jenkins. Your ready to roll
在 Jenkins 设置中轻松设置从主机的 IP 地址。选择 ssh 作为通信方式并在从机 jenkins setup 上设置记帐信息。确保从机可以 ssh 到您在 jenkins 中设置的帐户和机器。你准备好滚动
回答by Meir Gerenstadt
How to link jobs in Jenkins
如何链接 Jenkins 中的工作
Masterjob: "Trigger/call builds on other projects"
主要工作:“在其他项目上触发/调用构建”
Slavejob: Add a Condition Step build: "Run? Build Cause --> UpstreamCause (with The master project name)"and then copy the artifacts (.) from the "Master" job.
从作业:添加条件步骤构建:“运行?构建原因 --> UpstreamCause(带有主项目名称)”,然后从“主”作业中复制工件 ( .)。
Don't forget to copy from the workspace and not from the latest successful build, since the master didn't finished yet and din't publish the artifacts.
不要忘记从工作区复制而不是从最新的成功构建中复制,因为 master 还没有完成并且没有发布工件。