Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
3 views
in DevOps and Agile by (29.3k points)
We are facing issue while adding Jenkins node [ ubuntu server] .kindly help us to create nodes in jenkins
 
This option is not visible ,Manage Jenkins>Configure global security>Agents>TCP JNLP Agents
So ,we tried ‘TCP port for inbound agents’  with this when we run agent.jar ,error displayed– some random[4532767] port is disabled.
 

1 Answer

0 votes
by (50.2k points)

There are some changes in the steps with regards to Jenkins UI. You will have to goto Manage Jenkins > Configure Global Security >  TCP Port for Inbound Agent. Change the Fixed option to Random.

Once done, go to Manage Jenkins > Manage Nodes > New Node

Select Permanent Agent, and click on OK

Once done, configure the workDir, as /home/ubuntu/jenkins and then goto Launch Method

In Launch Method, select Launch Agent by connecting it to the master

Finally click on Save.

Finally again click on the newly created Slave. Inside the slave, goto download agent.jar and slave-agent.jnlp

Upload them to your slave on the home directory using Filezilla.

Finally, in the home directory of your slave, Execute the command shown in the jenkins dashboard, from where you downloaded the jar files.

You are now connected to the Jenkins Slave.

Points to remember: open the security group of the slave and the master for each other's IP address, with the All Traffic Condition.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...