Platform Labeler Plugin

April 30, 2026 ยท View on GitHub

Adds labels to Jenkins agents based on characteristics of the operating system running the agent.

Labels commonly include operating system name, version, architecture, and Windows feature update.

Intel / AMD x64 (amd64)

PlatformOS NameVersionArchitecture
Alma Linux 8AlmaLinux8.10amd64
Alma Linux 9AlmaLinux9.7amd64
Alma Linux 10AlmaLinux10.1amd64
Alpine 3.21Alpine3.21.6amd64
Alpine 3.22Alpine3.22.3amd64
Alpine 3.23Alpine3.23.3amd64
Amazon Linux 2023Amazon2023amd64
Debian 11Debian11amd64
Debian 12Debian12amd64
Debian 13Debian13amd64
Debian testingDebiantestingamd64
Debian unstableDebianunstableamd64
Fedora 43Fedora43amd64
Fedora 44Fedora44amd64
FreeBSD 14freebsd14-RELEASEamd64
openSUSE LeapopenSUSE16.0amd64
Oracle Linux 8OracleServer8.10amd64
Oracle Linux 9OracleServer9.7amd64
Oracle Linux 10OracleServer10.1amd64
Red Hat Enterprise Linux 8RedHatEnterprise8.10amd64
Red Hat Enterprise Linux 9RedHatEnterprise9.7amd64
Red Hat Enterprise Linux 10RedHatEnterprise10.1amd64
Rocky Linux 8Rocky8.10amd64
Rocky Linux 9Rocky9.7amd64
Rocky Linux 10Rocky10.1amd64
SLES 15SUSE15amd64
Ubuntu 22Ubuntu22.04amd64
Ubuntu 24Ubuntu24.04amd64
Windows 11windows10.0amd64
Windows Server 2016WindowsServer201610.0amd64
Windows Server 2019WindowsServer201910.0amd64
Windows Server 2022WindowsServer202210.0amd64
Windows Server 2025WindowsServer202510.0amd64

ARM 64 bit (aarch64)

PlatformOS NameVersionArchitecture
Ubuntu 24Ubuntu24.04aarch64

ARM 32 bit (arm)

PlatformOS NameVersionArchitecture
Raspberry Pi OS 11Raspbian11arm
Raspberry Pi OS 12Raspbian12arm

IBM System 390 (s390x)

PlatformOS NameVersionArchitecture
Ubuntu 22Ubuntu22.04s390x

On Windows computers, the plugin assigns a label based on the Windows feature update. Feature update labels use a two digit year and a two digit month representation. Common values for Windows feature update are 1809, 1903, 2009, and 2109.

On Linux computers, the plugin uses the output of the lsb_release command if the command is available.

If lsb_release is not installed, labels on Linux agents will be guessed based on values in /etc/os-release. Fedora Linux, Red Hat Enterprise Linux 9, and its derivatives intentionally do not deliver lsb_release.

Red Hat Enterprise Linux agents have another fallback based on /etc/redhat-release.

Agents with an older version of SuSE Linux will fallback to /etc/SuSE-release. Older versions of this plugin might return "sles" or "SUSE LINUX" as OS name. This has been unified to "SUSE".

When /etc/os-release is used, less detailed labels may be provided because more specific version information is not included in the file. For example:

PlatformOperating SystemVersionArchitecture
Debian testingDebiantrixieamd64
Debian unstableDebiantrixieamd64

The types of labels can be configured globally and per agent with the 'Automatic Platform Labels' setting.

To reduce the set of labels defined for an agent, activate 'Automatic Platform Labels' in the Node Properties section and select the desired label types.

Configuration as code

The platform labeler plugin supports configuration as code for global configuration and for agent configuration. Here is a global configuration example:

unclassified:
  platformLabelerGlobalConfiguration:
    labelConfig:
      architecture: true
      architectureName: false
      architectureNameVersion: false
      name: true
      nameVersion: false
      osName: true
      version: true
      windowsFeatureUpdate: false

Agent configuration uses a platform labeler node property like this:

jenkins:
  nodes:
  - permanent:
      launcher:
        inbound:
          webSocket: true
      name: "my-windows-agent"
      nodeProperties:
      - platformLabeler:
          labelConfig:
            architecture: true
            architectureName: false
            architectureNameVersion: false
            name: true
            nameVersion: false
            osName: true
            version: true
            windowsFeatureUpdate: false
      remoteFS: "C:\\Users\\Jenkins\\agent"
      retentionStrategy: "always"

Report an Issue

Please report issues and enhancements through the Jenkins issue tracker.