提交 574b1616 编写于 作者: C CloudBees DEV@Cloud

Merge REMERGE_HEAD into HEAD

...@@ -55,6 +55,9 @@ Upcoming changes</a> ...@@ -55,6 +55,9 @@ Upcoming changes</a>
<!-- Record your changes in the trunk here. --> <!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=--> <div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image> <ul class=image>
<li class=bug>
Fixed "java.lang.NoClassDefFoundError: JarURLConnection" on OpenJDK
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-20163">issue 20163</a>)
<li class=bug> <li class=bug>
Allow background tasks to run simultaneously, preventing task blockage. Allow background tasks to run simultaneously, preventing task blockage.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-19622">issue 19622</a>) (<a href="https://issues.jenkins-ci.org/browse/JENKINS-19622">issue 19622</a>)
......
...@@ -42,7 +42,7 @@ THE SOFTWARE. ...@@ -42,7 +42,7 @@ THE SOFTWARE.
<properties> <properties>
<staplerFork>true</staplerFork> <staplerFork>true</staplerFork>
<stapler.version>1.222</stapler.version> <stapler.version>1.223</stapler.version>
<spring.version>2.5.6.SEC03</spring.version> <spring.version>2.5.6.SEC03</spring.version>
<groovy.version>1.8.9</groovy.version> <groovy.version>1.8.9</groovy.version>
</properties> </properties>
......
...@@ -27,6 +27,10 @@ public abstract class AgentProtocol implements ExtensionPoint { ...@@ -27,6 +27,10 @@ public abstract class AgentProtocol implements ExtensionPoint {
* Protocol name. * Protocol name.
* *
* This is a short string that consists of printable ASCII chars. Sent by the client to select the protocol. * This is a short string that consists of printable ASCII chars. Sent by the client to select the protocol.
*
* @return
* null to be disabled. This is useful for avoiding getting used
* until the protocol is properly configured.
*/ */
public abstract String getName(); public abstract String getName();
...@@ -44,7 +48,8 @@ public abstract class AgentProtocol implements ExtensionPoint { ...@@ -44,7 +48,8 @@ public abstract class AgentProtocol implements ExtensionPoint {
public static AgentProtocol of(String protocolName) { public static AgentProtocol of(String protocolName) {
for (AgentProtocol p : all()) { for (AgentProtocol p : all()) {
if (p.getName().equals(protocolName)) String n = p.getName();
if (n!=null && n.equals(protocolName))
return p; return p;
} }
return null; return null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册