使用Jenkins部署到Linux服务器,然后从Windows服务器运行selenium测试

时间:2021-05-05 12:12:21

I am currently trying to deploy a website in PHP to a Linux server using jenkins and then use the same job to run a set of selenium test cases using python on a windows server, I can do both of these things individually but can not find a way to do them both within the same job.

我目前正在尝试使用jenkins将PHP网站部署到Linux服务器,然后使用相同的工作在Windows服务器上使用python运行一组selenium测试用例,我可以单独执行这两项操作但无法找到在同一份工作中完成这些工作的方法。

I have tried using the Execute shell setting and then Executing a windows shell but do not know how to tell the job that these are different servers or if this is the correct method.

我已经尝试使用Execute shell设置然后执行一个Windows shell但不知道如何告诉作业这些是不同的服务器或者这是否是正确的方法。

1 个解决方案

#1


0  

Is there a reason why you want to do both in the same job? If you want job B to run only after Job A was completed successfully, You could have job A trigger Job B by using 'Add post-build action' in Job A configuration.

你有没有理由想在同一份工作中做两件事?如果您希望作业B仅在作业A成功完成后运行,您可以通过在作业A配置中使用“添加后构建操作”来作业A触发作业B.

#1


0  

Is there a reason why you want to do both in the same job? If you want job B to run only after Job A was completed successfully, You could have job A trigger Job B by using 'Add post-build action' in Job A configuration.

你有没有理由想在同一份工作中做两件事?如果您希望作业B仅在作业A成功完成后运行,您可以通过在作业A配置中使用“添加后构建操作”来作业A触发作业B.