When loads are heavy, you might need many machines to run builds. In such scenarios, you can add other machines as slave machines. Below are the steps to add a slave machine
- ssh into machine which you want to make slave and install openjdk
- Also, add public key of jenkins-master to authorized keys of slave like below
cat ~/.ssh/id_rsa.pub | ssh user@10.10.0.146 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
- Click Jenkins --> manage-jenkins --> manage-nodes
- Click new node.
- Add Name of the node. Also select dumb
- Add below information on next screen
- Click Add Credential
- Click add. Click Save.
- If everything is good, you should see slave2 coming online.
No comments:
Post a Comment