Wednesday, March 12, 2014

How to start a jenkins slave on linux machine without ssh?

Step 1: Login to Jenkins -> Manage jenkins -> Manage nodes -> Linux node name
Copy the command under
  Run from slave command line:
  Like java -jar slave.jar -jnlpUrl http://your-jenkins.org/jenkins/computer/linux-node-name/slave-agent.jnlp -secret ce4a8ada8d00c3b27f17bac3cb673c40a6d5d500d5bdf74084fcc5f1ea95b8b6

Step 2: Login to your linux machine

Step 3:  Run the command which you obtained in Step 1, with 'nohup' . Make sure Java is installed and is in path and also you need download slave.jar from Jenkins server.

nohup java -jar slave.jar -jnlpUrl http://your-jenkins.org/jenkins/computer/linux-node-name/slave-agent.jnlp -secret ce4a8ada8d00c3b27f17bac3cb673c40a6d5d500d5bdf74084fcc5f1ea95b8b6


No comments: