SlaveComputer.getRetentionStrategy was using Always when there was no node, leading to launches of unused agent JVMs.
@@ -801,7 +801,7 @@ public class SlaveComputer extends Computer {
public RetentionStrategy getRetentionStrategy() {
Slave n = getNode();
- return n==null ? RetentionStrategy.INSTANCE : n.getRetentionStrategy();
+ return n==null ? RetentionStrategy.NOOP : n.getRetentionStrategy();
}
/**
