Skip to content

Commit

Permalink
More examples in README
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed Sep 23, 2019
1 parent 9b9103f commit 6a7cea4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Expand Up @@ -5,20 +5,30 @@ Labels commonly include operating system name, version, and architecture.

| Operating System | Labels assigned by plugin |
| ---------------- | ---------------------------------------------------------------------------------------------------- |
| Alpine | `3.9.4` `Alpine` `Alpine-3.9.4` `amd64` `amd64-Alpine` `amd64-Alpine-3.9.4` |
| Amazon Linux | `2018.03` `AmazonAMI` `AmazonAMI-2018.03` `amd64` `amd64-AmazonAMI` `amd64-AmazonAMI-2018.03` |
| Amazon Linux 2 | `2` `Amazon` `Amazon-2` `amd64` `amd64-Amazon` `amd64-Amazon-2` |
| CentOS 6 | `6.10` `CentOS` `CentOS-6.10` `amd64` `amd64-CentOS` `amd64-CentOS-6.10` |
| CentOS 7 | `7.4.1708` `CentOS` `CentOS-7.4.1708` `amd64` `amd64-CentOS` `amd64-CentOS-7.4.1708` |
| Debian 9 | `9.11` `Debian` `Debian-9.11` `amd64` `amd64-Debian` `amd64-Debian-9.11` |
| Debian 10 | `10` `Debian` `Debian-10` `amd64` `amd64-Debian` `amd64-Debian-10` |
| Debian testing | `testing` `Debian` `Debian-testing` `amd64` `amd64-Debian` `amd64-Debian-testing` |
| FreeBSD 11 | `11.1-STABLE` `amd64` `amd64-freebsd` `amd64-freebsd-11.1-STABLE` `freebsd` `freebsd-11.1-STABLE` |
| FreeBSD 12 | `12.0-RELEASE` `amd64` `amd64-freebsd` `amd64-freebsd-12.0-RELEASE` `freebsd` `freebsd-12.0-RELEASE` |
| Ubuntu 14.04 | `14.04` `Ubuntu` `Ubuntu-14.04` `amd64` `amd64-Ubuntu` `amd64-Ubuntu-14.04` |
| Ubuntu 16.04 | `16.04` `Ubuntu` `Ubuntu-16.04` `amd64` `amd64-Ubuntu` `amd64-Ubuntu-16.04` |
| Ubuntu 18.04 | `18.04` `Ubuntu` `Ubuntu-18.04` `amd64` `amd64-Ubuntu` `amd64-Ubuntu-18.04` |
| Windows 10 | `10.0` `amd64` `amd64-windows` `amd64-windows-10.0` `windows` `windows-10.0` |

On Linux computers, the plugin uses the output of the `lsb_release` command.
If `lsb_release` is not installed, labels on Linux machines will be guessed based on values in /etc/os-release.

If `lsb_release` is not installed, labels on Linux agents will be guessed based on values in /etc/os-release.
When /etc/os-release is used, less detailed labels are provided.
For example:

| Operating System | Labels assigned by plugin when lsb-release is not installed |
| ---------------- | --------------------------------------------------------------- |
| CentOS 7 | `7` `CentOS` `CentOS-7` `amd64` `amd64-CentOS` `amd64-CentOS-7` |

Source code is formatted with the command:

Expand Down

0 comments on commit 6a7cea4

Please sign in to comment.