Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a Jenkins Slave via Java Web Start

I have already had a working Master - Slave Configuration on my Jenkins, but an update broke it so I had to reinstall it (didn't have a backup yet).

But now after reinstalling Jenkins I don't get it to work anymore.

When I go on Manage Jenkins -> Node Management I can only add new "permanent" Agents and not the old "Dumb Slave" Node I used to have. Was there an update or something so this doesn't work anymore?

Also when using this permanent Agent the help ? shows me the option "Launch agent via Java Web Start" on the Launch method field - but in the drop down it is not available.

Did I make something wrong on the installation?

edit: Using newest Version 2.16 of Jenkins

like image 743
Dominik Lemberger Avatar asked Aug 02 '16 15:08

Dominik Lemberger


People also ask

How do I start Jenkins agent Jnlp?

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 fix Java Web Start is not available for the JVM version running Jenkins?

Make sure that you've enabled a JNLP port in Manager Jenkins -> Configure Global Security. If no JNLP port is specified, then the JNLP slave option will not appear. Save this answer.


1 Answers

Ok, I found it myself!

In the Global Security, I didn't have a TCP port for JNLP agents enabled, which automatically disables the line "Launch agent via Java Web Start"

As mentioned here:

Manage Jenkins => Configure Global Security => Enable security => TCP port for JNLP agents Set it to either Fixed (for this option also set the port number) or Random.

like image 155
Dominik Lemberger Avatar answered Oct 14 '22 18:10

Dominik Lemberger