简体   繁体   中英

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

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.

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.

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