@Extension
public class OneShotProvisionerStrategy
extends hudson.slaves.NodeProvisioner.Strategy
NodeProvisioner
to create build agent as soon as a build start.
This removes the need to hack LoadStatistics.CLOCK
to provision agent in a reasonable time.Constructor and Description |
---|
OneShotProvisionerStrategy() |
Modifier and Type | Method and Description |
---|---|
hudson.slaves.NodeProvisioner.StrategyDecision |
apply(hudson.slaves.NodeProvisioner.StrategyState strategyState) |
static OneShotProvisionerStrategy |
getInstance()
Returns the strategy singleton for the current Jenkins instance.
|
static boolean |
isEnabled()
Returns
true if this strategy is enabled for the current Jenkins instance. |
static void |
setEnabled(boolean enabled)
Sets whether this strategy is enabled for the current Jenkins instance.
|
@CheckForNull public static OneShotProvisionerStrategy getInstance()
null
public static boolean isEnabled()
true
if this strategy is enabled for the current Jenkins instance.true
if this strategy is enabled for the current Jenkins instance.public static void setEnabled(boolean enabled)
enabled
- if true
then the strategy will be enabled - including injecting it in the list of
strategies if necessary, if false
then the strategy will be disabled.Copyright © 2016–2017. All rights reserved.