Skip to content
Permalink
Browse files

with JENKINS-39232 we need to referene a JNLPLauncher (#543)

  • Loading branch information...
ndeloof committed Oct 27, 2017
1 parent d575d55 commit b574ba2a30dfcdd0f3cecbba4065d456ef4e3fa2
@@ -13,6 +13,8 @@
import hudson.model.Descriptor;
import hudson.model.TaskListener;
import hudson.slaves.ComputerLauncher;
import hudson.slaves.ComputerLauncherFilter;
import hudson.slaves.DelegatingComputerLauncher;
import hudson.slaves.JNLPLauncher;
import hudson.slaves.SlaveComputer;
import jenkins.model.Jenkins;
@@ -56,7 +58,12 @@ public JNLPLauncher getJnlpLauncher() {

@Override
protected ComputerLauncher launch(final DockerCloud cloud, final DockerTemplate template, final InspectContainerResponse inspect, TaskListener listener) throws IOException, InterruptedException {
return new ComputerLauncher() {
return new DelegatingComputerLauncher(new JNLPLauncher()) {

@Override
public boolean isLaunchSupported() {
return true;
}

@Override
public void launch(SlaveComputer computer, TaskListener listener) throws IOException, InterruptedException {

0 comments on commit b574ba2

Please sign in to comment.
You can’t perform that action at this time.