Introduction

This article describes one of the most common ways to setup Jenkins agent and connect it to Jenkins controller (master).

Setup options

Deployment of Jenkins agent and connecting to controller

Requirements

Network

Jenkins controller running in public

Jenkins agent node (slave) or so called on-premise executor

Inspired by

Troubleshooting

Java Runtime class files recognition errors

Jenkins agent installing procedure tries to be smart enough to detect and use correct Java (OpenJDK 11 or 17), however in some cases it might fail.

Symptoms

Workaround