publicstatic/* not final */booleanSKIP_BUILD_CHECK_ON_FLYWEIGHTS=SystemProperties.getBoolean(Node.class.getName() +".SKIP_BUILD_CHECK_ON_FLYWEIGHTS", true);
/**
* Newly copied agents get this flag set, so that Jenkins doesn't try to start/remove this node until its configuration
* is saved once.
@@ -395,7 +399,7 @@ public CauseOfBlockage canTake(Queue.BuildableItem item) {
}
Authentication identity = item.authenticate();
if (!hasPermission(identity,Computer.BUILD)) {
if (!(SKIP_BUILD_CHECK_ON_FLYWEIGHTS&& item.task instanceofQueue.FlyweightTask) &&!hasPermission(identity,Computer.BUILD)) {