I know we can post the following to offline a slave on Jenkins
http://[jenkins_url]:8080/computer/[slave_name]/toggleOffline?offlineMessage=bye
but is there one for disconnecting and connecting slave?
I ended up had to guess the api, but at least I found it. For those who are interested, there are the api link to disconnect and reconnect a slave agent to Jenkins.
Disconnect: http://[jenkins_url]:8080/computer/[slave_name]/doDisconnect?offlineMessage=bye
Reconnect: http://[jenkins_url]:8080/computer/[slave_name]/launchSlaveAgent
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With