Abhishek M.R
Abhishek M.R

Reputation: 17

Make Jenkins node offline if job passes

Is there any script or plugin so that I can take Jenkins node offline automatically if the job passes. Or if i explicitly give choice parameter to take node offline after current build.

Upvotes: 0

Views: 1354

Answers (1)

VonC
VonC

Reputation: 1324248

I mentioned before an API for disconnecting a node: see more at "Monitor and Restart Offline Slaves".

That means you can add a post-build action, which would call this api though curl.

Upvotes: 1

Related Questions