0
votes

How can I launch a slave agent via SSH on Jenkins programmatically?

Or enable auto refresh such that Jenkins checks automatically to see if a slave is online.

Basically I have a job which reboots one of the slaves. I need some jobs to run on the same slave after it boots up (by chaining another job using the Startup Trigger plugin) without any manual intervention in between these steps.

1

1 Answers

2
votes

Jenkins will automatically reconnect to the slave after it's rebooted; the master checks the slave connection every minute or so (I'm not sure of the exact interval without digging into the source code).

As long as the slave configuration is still defined in the Jenkins master, you shouldn't need to do anything on the slave machine.