Run batch file remotely using Hudson

What is the easiest way to schedule a batch file to run on a remote computer using Hudson (latest and greatest version)? I studied the setting of the master slave. I created a silent slave, but I'm not sure what options should be so that I can run the batch file on a remote slave computer.

Basically, I try to run two different batch files sequentially on two different remote computers launched from my machine (master). The walkthrough on the Hudson website is a dead link. There are similar questions on SO, but this doesn't quite work for me when I use the options they mention. If someone has done something similar, suggest ways to make this work. (I know how to configure tasks, and add a step to run a batch file, etc., that I have a problem with the setup, this is done on a remote machine using hudson in the built-in functions)

UPDATE

Thanks everyone for the suggestions. Quick update on this issue: What I wanted to do partially works, below are the steps that you need to follow to get to it -

  • Created a new Node from Manage Nodes → New Node → installed # from Executors as 1, Remote FS root set to '/ var / hudson', set the startup method as using JNLP, installed slavename and saved.

  • As soon as the subordinate was configured (from the master machine), I entered the subordinate physical machine, I downloaded _slave.jar from http: // masterserver: port / jnlpJars / slave.jar and ran the following from the command line at the download location → java - jar _slave.jar -jnlpUrl http: // masterserver: port / computer / slavename / slave-agent.jnlp . The connection was successful.

  • Checked "Limit where this project can be run" in the configuration of the main task, and set the parameter as slavename.

  • Checked "Add build step" to add my batch script job

  • , , , ?

+3
3

. , . , . Restrict where this project can be run node, . .

.

. , , . client.jar . , .

​​ , . srvany, . . , , Hudson . , jnlp.

ssh- , sls-ssl. . unix. ssl unix - , Windows.

+1

slave - Linux, Windows, , , .

+1

, hudson , , PsTools . PS - , , .

0

Source: https://habr.com/ru/post/1767956/


All Articles