Operations 3 min read

Understanding the "Launch agent by connecting it to the master" Option in Jenkins

The article explains that the Jenkins "Launch agent by connecting it to the master" option, formerly called "java web start", lets agents initiate a TCP connection to the server using JNLP, details port configuration, GUI versus headless operation, and alternative launch methods.

DevOps Cloud Academy
DevOps Cloud Academy
DevOps Cloud Academy
Understanding the "Launch agent by connecting it to the master" Option in Jenkins

In the DevOps pipeline tutorial, when adding an Agent node we used the “java web start” method to start the agent and connect to the Jenkins server.

Many users now cannot find this option; it has been renamed in newer versions to “Launch agent by connecting it to the master”.

This option allows the agent to connect to the Jenkins server using Java Web Start; the JNLP file must be opened on the agent machine, establishing a TCP connection from the agent to the server, so the server does not need to reach the agent.

If global security is enabled, the listening port for inbound agent connections can be customized on the Jenkins server; typically the agent opens a random outbound port to the configured master port, so network permissions must allow the server’s listening port.

By default the agent starts with a GUI, but it can also run head‑less, e.g., as a Windows service or via nohup on Linux. Other launch methods may use JNLP without Java Web Start or avoid JNLP altogether.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

ci/cdOperationsDevOpsAgentJenkinsJava Web Start
DevOps Cloud Academy
Written by

DevOps Cloud Academy

Exploring industry DevOps practices and technical expertise.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.