I am looking for a way to mark a slave permanently offline in jenkins through an API and i got this
http://[jenkins_url]:8080/computer/[slave_name]/doDisconnect?offlineMessage=bye
But the slave connects again when the next time a job runs on this.
Is there a way to permanently disconnect a slave so that it does not connect automatically again unless started manually?
Thanks in advance.