Skip to content

Commit

Permalink
Update the minimum required Remoting version to 3.14 (#4208)
Browse files Browse the repository at this point in the history
* Let remoting handle missing channels

* Bump minimum remoting version to 3.14
  • Loading branch information
Raihaan Shouhell authored and oleg-nenashev committed Sep 27, 2019
1 parent 16145cc commit 617bbb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions core/src/main/java/hudson/Launcher.java
Expand Up @@ -1327,11 +1327,7 @@ public int join() throws InterruptedException, IOException {
Channel taskChannel = null;
try {
// Sync IO will fail automatically if the channel is being closed, no need to use getOpenChannelOrFail()
// TODOL Replace by Channel#currentOrFail() when Remoting version allows
taskChannel = Channel.current();
if (taskChannel == null) {
throw new IOException("No Remoting channel associated with this thread");
}
taskChannel = Channel.currentOrFail();
taskChannel.syncIO();
} catch (Throwable t) {
// this includes a failure to sync, agent.jar too old, etc
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -105,7 +105,7 @@ THE SOFTWARE.
<!-- Bundled Remoting version -->
<remoting.version>3.35</remoting.version>
<!-- Minimum Remoting version, which is tested for API compatibility -->
<remoting.minimum.supported.version>3.4</remoting.minimum.supported.version>
<remoting.minimum.supported.version>3.14</remoting.minimum.supported.version>

<!-- TODO: JENKINS-36716 - Switch to Medium once FindBugs is cleaned up, 430 issues on Mar 10, 2018 -->
<findbugs.effort>Max</findbugs.effort>
Expand Down

0 comments on commit 617bbb5

Please sign in to comment.