-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a Windows Server label with os.name (#1201)
The Jenkins agent list shows the value of the Java `os.name` property to users in the "Architecture" column. This change adds a new label for agents based on the value in that architecture column. It is enabled by default. For most Linux distributions (CentOS, Debian, openSUSE, Red Hat, Ubuntu), the value will be "Linux". FreeBSD agents will have the value "FreeBSD". Windows agents will have a value that depends on the Windows version that is installed. Some examples include: * Windows11 * Windows10 * WindowsServer2016 * WindowsServer2019 * WindowsServer2023 The operating system name label can be enabled and disabled globally and can be enabled and disabled on each agent individually. Fixes #612 Existing labels are unaffected by the addition. Windows agents will still be labeled "windows", as controlled by the "Generate label with OS name" setting. Debian agents will still be labeled "Debian". Interactive testing has been performed to verify Windows and Linux agents are labeled as expected with the various configurations.
- Loading branch information
1 parent
f27fe52
commit 8f074df
Showing
12 changed files
with
148 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/main/resources/org/jvnet/hudson/plugins/platformlabeler/LabelConfig/config.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
Generate.LabelWithOSArchitecture=Generate label with OS architecture | ||
Generate.LabelWithOSName=Generate label with OS name | ||
Generate.LabelWithOSVersion=Generate label with OS version | ||
Generate.LabelWithWindowsFeatureUpdate=Generate label with Windows feature update (like 1809, 1903, 2009, or 2103) | ||
Generate.LabelWithWindowsFeatureUpdate=Generate label with Windows feature update (like 1607. 1809, 21H2, and 22H2) | ||
Generate.LabelWithOsName=Generate label with operating system name (Java property os.name) | ||
Generate.LabelWithOSArchitectureAndName=Generate label with OS architecture and name | ||
Generate.LabelWithOSNameAndVersion=Generate label with OS name and version | ||
Generate.LabelWithOSArchitectureNameAndVersion=Generate label with OS architecture, name, and version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.