How do I shut down an ssh connected linux slave?

Issue

How do I shutdown/restart slave process gracefully on a linux box?

Environment

  • CloudBees Jenkins Enterprise
  • Linux Slaves

Resolution

Sometimes you want to terminate the slave process on a linux ssh-connected node.

Whilst you can log on to the node, identify the java process and terminate it with kill, there is a much easier way via the Jenkins UI on the master.

  1. Navigate to “{JENKINS_URL}/computer”
  2. Select the node you wish to shutdown.
  3. Select “Disconnect” from the menu on the left. This will terminate the process.

  Screen_Shot_2015-05-15_at_11.47.06_AM.png

If you wish to gracefully shutdown, then select “Mark this node temporarily offline”, wait for the running builds to finish and then select “Disconnect”.

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.