Write down steps to add new linux node of Jenkins?
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
- Install JAVA and necessary packages to the node
- Create a user on the agent to be used by Jenkins
- Generate an ssh key. …
- Add the public key to the authorized_keys file of the Jenkins user on the node.
- Add the agent node in Jenkin UI.
- Go to Manage Jenkins, then Manage Nodes, then click New Node. Here you can give your node a name, then select Permanent Agent and click OK.
- Select Launch Slave Agents via SSH for Launch Method.
- Enter the hostname or IP address of node in the Host field.
- Click the Add button next to Credentials and select the Jenkins scope.
- For the credential, set Kind to SSH username with private key.
- Enterjenkins for the username.
- For the private key, select Enter directly. Then, copy the contents of your private key file (~/.ssh/id_rsa by default) and paste it into the Key box.
- Click Save to save the new node.