未验证 提交 bc39ba8d 编写于 作者: J Jesse Glick 提交者: GitHub

Merge pull request #3701 from jglick/SlaveComputer.getRetentionStrategy

SlaveComputer.getRetentionStrategy mistake led to launches of unused agent JVMs
...@@ -801,7 +801,7 @@ public class SlaveComputer extends Computer { ...@@ -801,7 +801,7 @@ public class SlaveComputer extends Computer {
public RetentionStrategy getRetentionStrategy() { public RetentionStrategy getRetentionStrategy() {
Slave n = getNode(); Slave n = getNode();
return n==null ? RetentionStrategy.INSTANCE : n.getRetentionStrategy(); return n==null ? RetentionStrategy.NOOP : n.getRetentionStrategy();
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册