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 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
This used an api token
for the user.
curl -X POST https://user:token@host/computer/node_name/launchSlaveAgent