You might use the below plugin:
- https://wiki.jenkins-ci.org/display/JENKINS/Offline+Node+On+Failure+Plugin

but I don't know whether it's already supported by that plugin...

On Sunday, 21 February 2016 16:53:27 UTC, Gurusharan S wrote:
>
> 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/2c08c65b-664c-4b9d-ac0d-0b045b6c2f5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to