How to add Slave Nodes/SSH build agents in Jenkins
1. Add Git server(mnode01) and App server(mnode02) as SSH build agent/slave nodes in Jenkins. The slave nodes name must be Git_mnode01, App_mnode02 respectively.
2. Add labels as below
Git_mnode01: mnode01
App_mnode02 : mnode02
3. Remote root directory for Git_mnode01 must be /home/kumar/jenkins and App_mnode02 must be /home/john/Jenkins
4. Make sure slave nodes are online and working properly.
Pre-Requisite
* This Task based on the Learning LAB, which I have set up with 3 servers.
mnode01 is my git server, mnode02 is my app server and master is my Jenkins server.
* Should have ssh connection between servers.
* You might need to install some plugins and restart Jenkins service.
Solution
Step 1: Install Java on all Node servers ( app, git servers)
Step 2: Install SSH build agent plugin in Jenkins,
Step 4: Setup the slave nodes in jenkins.
Verification:
Refresh the nodes list. You should see the newly added nodes with the system statistics details.
Check below the sample solution video for the above task.
PLEASE SUPPORT ME BY
LIKE || SUBSCRIBE || COMMENTS on MY YOUTUBE CHANNEL AND BLOG
LIKE || SUBSCRIBE || COMMENTS on MY YOUTUBE CHANNEL AND BLOG
STAY TUNED FOR MORE VIDEOS.......
#Learn #Practice #Re-Learn #Improve #Motivate
#Continue-Learning #Apply #Get-Help #Help-Others
No comments:
Post a Comment