Package jenkins.slaves
Class RemotingVersionInfo
java.lang.Object
jenkins.slaves.RemotingVersionInfo
Provides information about Remoting versions used within the core.
- Since:
- unrestricted since 2.104, initially added in 2.100.
- Author:
- Oleg Nenashev
-
Method Summary
Modifier and TypeMethodDescriptionstatic hudson.util.VersionNumber
Returns a version which is embedded into the Jenkins core.static hudson.util.VersionNumber
Gets Remoting version which is supported by the core.
-
Method Details
-
getEmbeddedVersion
@NonNull public static hudson.util.VersionNumber getEmbeddedVersion()Returns a version which is embedded into the Jenkins core. Note that this version may differ from one which is being really used in Jenkins.- Returns:
- Remoting version
-
getMinimumSupportedVersion
@NonNull public static hudson.util.VersionNumber getMinimumSupportedVersion()Gets Remoting version which is supported by the core. Jenkins core and plugins make invoke operations on agents (e.g.ControllerToAgentCallable
) and use Remoting-internal API within them. In such case this API should be present on the remote side. This method defines a minimum expected version, so that all calls should use a compatible API.- Returns:
- Minimal Remoting version for API calls.
-