Hello Jackqueline, Have you considered using jenkins CLI for this? From the CLI doc:
java -jar jenkins-cli.jar <http://localhost:8080/jenkins/jnlpJars/jenkins-cli.jar> -s http://localhost:8080/jenkins/ disconnect-node NAME [-m VAL] Disconnects from a node. NAME : Slave name, or empty string for master -m VAL : Record the note about why you are disconnecting this node However, this cannot be invoked directly as a build step - you can consider using a post-build script or a separate job (running on the master) for this that can be triggered with a delay automatically or using upstream/downstream projects. Hope this helps. Bye for now, Gurusharan S. On Friday, 12 February 2016 06:13:14 UTC+5:30, Jacqueline Taing wrote: > > Is there a way to mark a node offline via DSL. We currently use Build > Flow Plugin > <https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin> to define > jobs and I'd like to automatically take a node offline when a build fails > (so other jobs do not get queued/run on this slave). > > Thanks! > -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/12c4d887-cde9-4836-8a17-2eeb627384bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.