launching slave agent with curl?

87 views
Skip to first unread message

randal cobb

unread,
Feb 6, 2015, 1:15:12 PM2/6/15
to jenkins...@googlegroups.com
Hello all,

I know I can toggle a slave's on/offline state with a curl command.  Is there one I can use to launch the slave agent on a host after a reboot of the slave?

For example, I know I can use something like this:
curl --silent --user user:password -d "offlineMessage=back_in_a_moment&json=%7B%22offlineMessage%22%3A+%22maven_repository_cache_cleanup%22%7D&Submit=Mark+this+node+cache+cleanup" http://hostname:8080/jenkins/computer/${option.hostname}/toggleOffline
to toggle the online/offline state, but I'm looking for something similar to actually tell jenkins to launch the slave agent after a physical slave has been rebooted.

Thanks in advance!
Randy
Reply all
Reply to author
Forward
0 new messages