使用Jenkins从机器B运行机器A的构建 [英] Run build of Machine A from Machine B using Jenkins
问题描述
我有2台计算机. Com-A,Com-B.
I have 2 computers. Com-A, Com-B.
我在Com-A上使用硒webdriver,Testng和Maven构建了自动化功能脚本.
I have build automation functional script using selenium webdriver,Testng and maven on Com-A.
Com-A已使用Jenkins安装了所有组件,但是Com-B仅安装了jenkins,我可以运行从Com-B部署在Com-A中的构建吗?还是我也必须将所有必要的软件安装到Com-B?
Com-A has installed everything with Jenkins but Com-B has only jenkins , Can I run build which is deployed in Com-A from Com-B? Or I will have to install all necessary software to Com-B also?
推荐答案
您当前的设置足以从Com-B到Com-A远程启动构建.
Your current setup is good enough to kick off the build remotely from Com-B to Com-A.
请确保部署在 Com-B 上的 jenkins服务器已正确配置为主服务器,其他节点(例如Com-A)已配置为从服务器.
Please make sure the jenkins server deployed on Com-B has properly configured as Master and other nodes (ex : Com-A) as slaves.
为确保配置,请按照以下步骤操作:
To ensure the configurations, please follow the steps given below :
-
步骤1:转到管理詹金斯页面,然后选择管理节点链接
Step 1: Go to Manage Jenkins page and select Manage Nodes link
-
步骤3:要添加新节点,请命名(例如:selenium-slave1),然后选择转储从属"选项以将节点添加为自定义从属.
Step 3: To add new Node, give a name (ex: selenium-slave1) and select Dump Slave option to add a node as customized slave.
-
步骤4(a):添加节点后,如下所示配置节点.
Step 4(a): After adding the node, configure the node as shown below.
-
步骤4(c):配置根据您的设置突出显示的高级字段,然后单击保存".
Step 4(c): configure advanced fields which are highlighted as per your settings and click save.
-
第5步:最后,一个新节点已作为从节点添加并成功配置.
Step 5: Finally a new node has been added as slave and configured successfully.
-
第6步(a):现在,配置一个新作业,以便在需要运行它时对其进行调度.
Step 6(a): Now Configure a new Job to schedule it whenever it need to be run.
-
步骤6(b):由于您的项目是使用maven配置的,因此添加新的maven作业.
Step 6(b): Add a new maven job since your project has been configured using maven.
注意::将很快添加作业配置.
Note : Will add the job config soon.
这篇关于使用Jenkins从机器B运行机器A的构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!