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/e2bc7eb0-9f94-46d5-912a-ebcdf1827ac5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to