The Nautilus DevOps team has installed and configured new Jenkins server in Stratos DC which they will use for CI/CD and for some automation tasks. There is a requirement to add all app servers as slave nodes in Jenkins so that they can perform tasks on these servers using Jenkins. Find below more details and accomplish the task accordingly.
Click on the Jenkins button on the top bar to access the Jenkins UI. Login using username admin and password Adm!n321.
Add all app servers as SSH build agent/slave nodes in Jenkins. Slave node name for app server 1, app server 2 and app server 3 must be App_server_1, App_server_2, App_server_3 respectively.
Add labels as below:
/home/tony/jenkins,/home/steve/jenkins and/home/banner/jenkins.Note:
You might need to install some plugins and restart Jenkins service. So, we recommend clicking on Restart Jenkins when installation is complete and no jobs are running on plugin installation/update page i.e update centre. Also, Jenkins UI sometimes gets stuck when Jenkins service restarts in the back end. In this case, please make sure to refresh the UI page.
For these kind of scenarios requiring changes to be done in a web UI, please take screenshots so that you can share it with us for review in case your task is marked incomplete. You may also consider using a screen recording software such as loom.com to record and share your work.
Manage Jenkins > Credentials > System > Global Credentials > Add Credentials
Login into each App Server and install java
sudo yum install java-21-openjdk -y
Add Agent Nodes: Manage Jenkins > Nodes > Create an Agent Node:
Create a freestyle job: testNode:
echo "Hello from Agent"
pwd
echo $USER
Watch the video tutorial here: https://youtu.be/KILDE85z8iw