Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

There is no "Launch agent via Java Web Start" option in my jenkins when I adding a windows slave node

I have already configured the java enviroment and installtion path

Here is the picture

like image 478
shuiqiang Avatar asked Oct 31 '16 10:10

shuiqiang


People also ask

How do I set up a Windows slave agent via Jnlp if I have a Jenkins master configured on Linux?

In order to setup a windows-slave agent you need to first Enable the JNLP Agents : Go to Manage Jenkins -> Configure Global Security -> under Agents section -> TCP port for inbound agents -> select Random ->Save.

How do I start Windows agent in Jenkins?

From the Windows agent system log in to Jenkins and go to the status page for the windows node that was created earlier. Click the Launch agent from browser. This will start an agent with a GUI. Click File and then “Install as a Service”.


2 Answers

This is a duplicate question from Server Fault: Answer Here

Java Web Start utilizes TCP so it has to be enabled and configured in Jenkins...

  1. Login to Jenkins as admin
  2. Manage Jenkins > Configure Global Security > TCP port for JNLP agents

Do yourself a favor and pick a static port assignment...

like image 167
ѺȐeallү Avatar answered Sep 19 '22 09:09

ѺȐeallү


As of Jenkins version 2.176.3, there is option enabled when "Launch agent by connecting it to the master" which is same as "launch agent via java web start" once you enable the "Manage Jenkins => Configure Global Security => Agents => TCP port for inbound agents" as mentioned above. e.g. Fixed: 50000

like image 35
tyro Avatar answered Sep 18 '22 09:09

tyro