简体   繁体   中英

Running a windows batch file from Jenkins installed on Linux

I have Jenkins running on a Linux server. It takes a built war file and deploys it to another linux machine and restarts 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. 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?

Any help appreciated!

One possibility would be to add that Windows machine as an "agent" node. It wouldn't have a full Jenkins installation. Here's some documentation on adding a Windows agent (formerly referred to as slave nodes). You can then have that agent run the batch script, or whatever you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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