提交 4f530000 编写于 作者: S Stephen Connolly

[JENKINS-37315] Stop A/B testing JNLP3

上级 04be71b0
......@@ -137,7 +137,6 @@ public class JnlpSlaveAgentProtocol3 extends AgentProtocol {
/**
* Flag to control the activation of JNLP3 protocol.
* This feature is being A/B tested right now.
*
* <p>
* Once this will be on by default, the flag and this field will disappear. The system property is
......@@ -151,11 +150,8 @@ public class JnlpSlaveAgentProtocol3 extends AgentProtocol {
static {
forceEnabled = SystemProperties.optBoolean(JnlpSlaveAgentProtocol3.class.getName() + ".enabled");
if (forceEnabled != null)
if (forceEnabled != null) {
ENABLED = forceEnabled;
else {
byte hash = Util.fromHexString(Jenkins.getActiveInstance().getLegacyInstanceId())[0];
ENABLED = (hash%10)==0;
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册