Connect Master with Slave in Jenkins:
First go to the Jenkins and click on manage jenkins, go to the configure global security, here in the agents section click on random and save it.
We need to install Jenkins on Master only, no need to install jenkins on slave agent. Only jdk must be installed on slave and then slave can be connected with the master using jnlp connection.
Open the putty and connect it with our 2nd ubuntu machine. Update the machine using command suo apt-get update.
Install java using command sudo apt-get install default-jdk.
Now, in jenkins go to the Manage jenkins, here click on manage nodes. Create a new node named testing-server, give the directory as home-ubuntu-jenkins, in this directory our code will be downloaded. In the launch method select launch agent by connected it to master and save it.
Now open the slave node and click on launch button to download slave-agent.jnlp file and click on agent.jar file to download it.
Use filezilla to upload these files to the server and check in putty.
Create jenkins directory in putty using mkdir jenkins command.
Now, copy the command from the jenkins and paste it to the putty and once done it will be connected.
Open nodes and see the cross iicon will be disappeared that means master is now connected with slave successfully.
Now, you have become familiar with the jenkins dashboard.
share, support, like and subscribe
Subscribe : https://www.youtube.com/channel/UC5Lc...
LinkedIn : / pankaj-ch
...
Facebook : / pankajchhatri
Twitter : / pankajchhatri
Google plus : https://plus.google.com/u/0/+pankajch
...
About : AEM/CQ5 and Devops tutorial is a youtube channel which helps you to learn AEM and devops concepts theoretically as well as practically.
Watch video 9. Connect Master with Slave in Jenkins online without registration, duration hours minute second in high quality. This video was added by user AEM and Devops Tutorial 12 April 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 15,13 once and liked it 9 people.