Got it, thanks: https://wiki.jenkins.io/display/JENKINS/Jenkins+CLI
On Friday, October 27, 2017 at 5:57:18 AM UTC+9, Robert Hales wrote: > > You have to use the Jenkins CLI. I guess that can be a bit confusing. It > isn't a script available to run at the command line. Jenkins has their own > CLI. If you google for it, you will find the details pretty easily. > > On Thursday, October 26, 2017 at 2:55:07 PM UTC-6, Tomasz Chmielewski > wrote: >> >> Hmm, where do I find "offline-node" command? >> >> root@jenkins:~# dpkg -L jenkins >> /. >> /usr >> /usr/share >> /usr/share/doc >> /usr/share/doc/jenkins >> /usr/share/doc/jenkins/changelog.gz >> /usr/share/doc/jenkins/copyright >> /usr/share/jenkins >> /usr/share/jenkins/jenkins.war >> /etc >> /etc/logrotate.d >> /etc/logrotate.d/jenkins >> /etc/default >> /etc/default/jenkins >> /etc/init.d >> /etc/init.d/jenkins >> /var >> /var/cache >> /var/cache/jenkins >> /var/lib >> /var/lib/jenkins >> /var/log >> /var/log/jenkins >> >> root@jenkins:~# find / -name offline-node >> >> root@jenkins:~# >> >> root@jenkins:~# dpkg -l | grep jenkins >> ii jenkins 2.73.2 (...) >> >> >> >> On Friday, October 27, 2017 at 12:21:17 AM UTC+9, Robert Hales wrote: >>> >>> In the CLI, use the 'offline-node' command. Another useful command in >>> what it looks like you want to do might be "wait-offline-node". >>> >>> You could also create a groovy script to do it and run that from the >>> REST API. >>> >>> On Thursday, October 26, 2017 at 3:35:29 AM UTC-6, Tomasz Chmielewski >>> wrote: >>>> >>>> Is there a CLI/scripted way to stop scheduling any new builds on a >>>> given node? >>>> >>>> Basically, any builds currently running on a given node should continue >>>> to run until they are finished -- and no new builds should be started. >>>> >>>> Think of "retiring" a node, and replacing it with a new one -- but >>>> allowing any existing jobs to finish gracefully. >>>> >>>> >>>> >>>> Tomasz Chmielewski >>>> https://lxadm.com >>>> >>>> -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fc4c96f7-bd43-47e3-a421-d272eea8150a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
