简体   繁体   English

从安装在 Linux 上的 Jenkins 运行 windows 批处理文件

[英]Running a windows batch file from Jenkins installed on Linux

I have Jenkins running on a Linux server.我有 Jenkins 在 Linux 服务器上运行。 It takes a built war file and deploys it to another linux machine and restarts tomcat.它需要一个构建的war文件并将其部署到另一台linux机器并重新启动tomcat。

What I want to do after that is run a batch file on a windows machine that runs some Postman tests against that install.之后我想做的是在 windows 机器上运行一个批处理文件,该机器针对该安装运行一些 Postman 测试。 I'm not sure how to accomplish this as nobody else in the office has ever done this.我不确定如何做到这一点,因为办公室里没有其他人这样做过。

Is this possible without something like Wine?如果没有 Wine 之类的东西,这可能吗?

Any help appreciated!任何帮助表示赞赏!

One possibility would be to add that Windows machine as an "agent" node.一种可能性是将 Windows 机器添加为“代理”节点。 It wouldn't have a full Jenkins installation.它不会有完整的 Jenkins 安装。 Here's some documentation on adding a Windows agent (formerly referred to as slave nodes).这是一些关于添加 Windows 代理(以前称为从节点)的文档。 You can then have that agent run the batch script, or whatever you need.然后,您可以让该代理运行批处理脚本或您需要的任何内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM