2
votes

I have a Jenkins master (Linux Debian) and 4 slaves (Windows 7) which are connected via JNLP. The jenkins slave service works well in each slave. However when I restart a slave machine, the connection breaks down for all the slaves and the reconnection is established again only if the Jenkins master is restarted.

What should I do?

2
It's not possible by default, I'm looking for a plugin which may enable this. - ocodo
@Slomojo any success? - Dogmatixed
Unfortunately, at the moment, there isn't one that does this - ocodo

2 Answers

-1
votes

I solved the issue with the following command:

sc triggerinfo <service_name_of_jenkins_slave> start/networkon stop/networkoff
-2
votes

You may need to install the slave as a windows service.

https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Windows+service

update:

Installation as a task

If for some reason the service crashes a lot, you may want to install a task to start jenkins slave through the task scheduler.

  1. right click on computer (either on desktop icon or menu option)

    right click and manage

  2. find the task scheduler

    find the task scheduler

  3. create a basic task

    create a basic task

follow the other steps from this wiki.