Package io.jenkins.plugins.python
Class PlatformUtils
java.lang.Object
io.jenkins.plugins.python.PlatformUtils
- All Implemented Interfaces:
Serializable
Utility functions for detecting host/agent OS platforms and CPU architectures
to map against standalone Python build targets.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdetectPlatformKey(Node node, TaskListener listener) Inspects a Jenkins Node to determine its OS and CPU architecture.static FilePathgetPythonExecutable(FilePath home) Resolves the primary Python binary file path given the tool home directory.static PlatformUtils.Archstatic PlatformUtils.OSstatic StringtoPlatformKey(PlatformUtils.OS os, PlatformUtils.Arch arch) static StringtoPlatformKey(PlatformUtils.OS os, PlatformUtils.Arch arch, boolean isMusl)
-
Method Details
-
detectPlatformKey
Inspects a Jenkins Node to determine its OS and CPU architecture. Uses controller-managed Computer system properties rather than remoting callables, and fails early if the target platform is unsupported. -
toPlatformKey
-
toPlatformKey
-
parseOS
-
parseArch
-
getPythonExecutable
Resolves the primary Python binary file path given the tool home directory.
-