Class RemoteLockRouting

java.lang.Object
org.jenkins.plugins.lockableresources.remote.RemoteLockRouting

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class RemoteLockRouting extends Object
Client-side routing helpers for lock(): decides whether a step targets a remote server and to which RemoteConnection, and derives the human-readable target.
  • Peer mode - lock(..., serverId: 'X') targets server X explicitly.
  • Delegated mode - a configured forcedServerId routes every lock to that server (and overrides any DSL serverId, logging an INFO when they differ).