Adding a slave in Jenkins is pretty simple. Basically, if you are using a unix slave, you need SSH access to the machine. You also need to have the Jenkins SSH Slaves plugin installed. Once you have that, go to the Manage Jenkins option on your Master and choose Manage Nodes.
The steps are then:
- Click New Node
- Select Dumb Slave and give it a name (symbolic, doesn't need to be the domain name, that comes later)
- Click OK and proceed to the configuration page
- Fill in the # of executors with the number of simultaneous processes you want to run on that node (usually not more than the number of allocated CPU cores)
- Fill in the Remote FS Root with the full path to where you want Jenkins to store its working files
- Optionally add Labels if you are using those in your system (not necessary in many cases, but your Projects may require nodes have certain labels to be in the pool of executors for specific jobs)
- Select Launch slave agents on Unix machines via SSH under Launch Method (if not already selected)
- Put the fully-qualified domain name in the Host field which appears under the Launch Method line
There are some assumptions about the tools that are installed on the slave. If you have specialized tools, you may need to install them separately (or look at plugins that handle moving tools over immediately prior to execution). However, if your nodes are built off of a template which has all of your build tools on them (java, ant, etc in your case probably), then this will be all you need to do to get things going.