Class LoadBalancerInstaller

java.lang.Object
io.jenkins.plugins.smartexecutorloadbalancer.LoadBalancerInstaller

public class LoadBalancerInstaller extends Object
Installs SmartLoadBalancer as the global Jenkins load balancer after all extensions are registered.

The previously active balancer is captured and passed to SmartLoadBalancer as its fallback, so:

  • Jobs that opt out via SmartLBJobProperty are handled by the previous balancer (typically Jenkins' built-in consistent-hash).
  • Any unexpected scoring exception falls back safely instead of leaving builds stuck in the queue.
  • If another balancer (e.g. leastload) was already installed, it becomes the fallback rather than being silently discarded.